Function at 0x5d2920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push ebx
call fcn.004c0b20
mov edi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 1]
push ecx
mov dword [esp + 0x80], edi
call fcn.004869e0
mov eax, dword [0x6bf274]
mov edx, dword [eax]
movzx ecx, di
push 1
push ecx
push eax
call dword [edx + 0x10]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
mov edx, esi
push ecx
lea edi, [esp + 0x9c]
mov esi, ebx
call fcn.005d1550
mov eax, dword [esp + 0x9c]
add esp, 0x24
cmp eax, 0x10000
jne 0x5d2a4e
mov eax, dword [esp + 0x70]
cmp ax, 0x102
movzx ecx, ax
jb 0x5d29a9
mov ecx, 0x102
xor eax, eax
test cx, cx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
jbe 0x5d2c50
lea esp, [esp]
movzx esi, ax
mov edx, dword [esi*4 + 0x68c4e8]
push edx
call fcn.0043faa0
movzx edx, word [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x54]
push ecx
push eax
mov eax, dword [edx*4 + 0x68c4e8]
push eax
call fcn.00486200
mov ecx, dword [0x682790]
mov eax, dword [esp + 0x60]
mov edx, dword [0x682794]
push esi
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
and eax, 0xfffffffe
push eax
push ebx
push edi
mov dword [esp + 0x78], eax
mov dword [esp + 0xac], edx
call fcn.00488b70
movzx edx, word [esp + 0x40]
mov eax, dword [esp + 0x80]
mov byte [edx + eax], 1
mov eax, dword [esp + 0x40]
add esp, 0x2c
inc eax
cmp ax, word [esp + 0x30]
mov dword [esp + 0x14], eax
jb 0x5d29c0
mov ebx, dword [ebp + 8]
jmp 0x5d2c50
cmp eax, 0x20000
jne 0x5d2c1f
mov edx, dword [esp + 0x2c]
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x64]
push 0
push ecx
mov edi, eax
mov eax, dword [ebx + 0x10]
push ebx
call dword [eax + 0x28]
add esp, 0x14
test eax, eax
je 0x5d2a85
call fcn.004856b0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x10]
push ebx
push eax
push 1
push edi
call dword [edx + 8]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push 2
push edx
mov dword [esp + 0x2c], edi
call fcn.004bf4c0
movzx edx, word [esp + 0x4c]
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
shl edx, 2
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [esp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x54]
push eax
mov eax, esi
mov ecx, edi
call fcn.005d1500
add esp, 0x28
cmp word [esp + 0x30], 0
mov dword [esp + 0x14], 0
jbe 0x5d2c02
jmp 0x5d2af0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x14]
push 2
push edx
call fcn.004bf4c0
mov eax, dword [esp + 0x50]
movzx edx, word [esp + 0x3c]
movzx ecx, ax
add edx, 0x102
add esp, 0xc
cmp ecx, edx
jae 0x5d2bee
cmp ax, 0x102
jb 0x5d2b76
add eax, 0xfefe
movzx ecx, ax
mov dword [esp + 0x44], eax
cmp dword [esi + ecx*4], 0
jne 0x5d2b3f
call fcn.004856b0
mov eax, dword [esp + 0x44]
movzx edx, ax
mov eax, dword [esi + edx*4]
movsx ecx, byte [eax]
test ecx, ecx
jle 0x5d2bee
mov edx, dword [esp + 0x14]
push edx
lea edx, [eax + 1]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.005d1ab0
movzx ecx, word [esp + 0x20]
mov edx, dword [esp + 0x60]
mov byte [ecx + edx], 1
jmp 0x5d2beb
mov eax, dword [ecx*4 + 0x68c4e8]
push eax
call fcn.0043faa0
mov ecx, dword [esp + 0x24]
movzx edx, word [esp + 0x48]
mov edx, dword [edx*4 + 0x68c4e8]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.005d1a60
add esp, 0xc
test eax, eax
jne 0x5d2bee
movzx eax, word [esp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax*4 + 0x68c4e8]
push edx
push ecx
call fcn.0043faa0
mov ecx, dword [esp + 0x28]
movzx edx, word [esp + 0x4c]
mov edx, dword [edx*4 + 0x68c4e8]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.005d1ab0
movzx edx, word [esp + 0x20]
mov eax, dword [esp + 0x60]
mov byte [edx + eax], 1
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
cmp ax, word [esp + 0x30]
mov dword [esp + 0x14], eax
jb 0x5d2af0
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 8]
mov eax, dword [0x6bf274]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 8]
add esp, 0x10
jmp 0x5d2c50
mov eax, dword [str..notdef]
push 0
push eax
call fcn.0043faa0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
push ecx
push edx
mov edx, dword [str..notdef]
mov ecx, eax
call fcn.005d1ab0
mov eax, dword [esp + 0x60]
add esp, 0xc
mov byte [eax], 1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x60]
push edx
mov edx, dword [ebp + 0xc]
push 4
push 1
push 3
mov esi, ebx
call fcn.005d17e0
add esp, 0x14
test eax, eax
je 0x5d2eed
mov edx, dword [esp + 0x2c]
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x64]
push 0
mov edi, eax
mov eax, dword [ebx + 0x10]
push ecx
push ebx
mov dword [esp + 0x48], edi
call dword [eax + 0x28]
add esp, 0x14
test eax, eax
je 0x5d2ca5
call fcn.004856b0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x10]
push ebx
push eax
push 1
push edi
call dword [edx + 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
lea ecx, [edi + 6]
push 2
push eax
mov dword [esp + 0x2c], ecx
call fcn.004bf4c0
mov ax, word [esp + 0x28]
shr ax, 1
add esp, 0x1c
test ax, ax
mov word [esp + 0xc], ax
mov dword [esp + 0x28], 0
jbe 0x5d2ede
lea ecx, [ecx]
movzx esi, word [esp + 0x28]
lea edx, [esp + 0x18]
push edx
add edi, 0xe
lea eax, [esp + 0x14]
lea ecx, [edi + esi*2]
push 2
push eax
mov dword [esp + 0x1c], ecx
call fcn.004bf4c0
add esp, 0xc
cmp word [esp + 0x18], 0xffff
je 0x5d2eda
movzx ecx, word [esp + 0xc]
add ecx, esi
lea eax, [esp + 0x48]
push eax
lea edx, [edi + ecx*2 + 2]
lea ecx, [esp + 0x14]
push 2
push ecx
mov dword [esp + 0x1c], edx
call fcn.004bf4c0
movzx edx, word [esp + 0x18]
lea eax, [esi + edx*2]
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + eax*2 + 2]
lea eax, [esp + 0x20]
push 2
push eax
mov dword [esp + 0x28], ecx
call fcn.004bf4c0
movzx eax, word [esp + 0x24]
lea ecx, [esi + eax*2]
add ecx, eax
lea eax, [esp + 0x58]
push eax
lea edx, [edi + ecx*2 + 2]
lea ecx, [esp + 0x2c]
push 2
push ecx
mov dword [esp + 0x34], edx
call fcn.004bf4c0
mov ecx, dword [esp + 0x6c]
add esp, 0x24
cmp cx, word [esp + 0x18]
mov ebx, ecx
mov dword [esp + 0x4c], ebx
ja 0x5d2ebd
jmp 0x5d2da2
mov ecx, dword [esp + 0x48]
mov dx, word [esp + 0x40]
test dx, dx
movzx edi, bx
je 0x5d2e08
movzx eax, word [esp + 0xc]
lea eax, [eax + eax*2]
mov esi, eax
movzx eax, word [esp + 0x28]
movzx ecx, cx
sub esi, ecx
add esi, edi
add esi, eax
mov eax, dword [esp + 0x34]
movzx edx, dx
add eax, 0xe
add edx, eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [edx + esi*2 + 2]
lea edx, [esp + 0x14]
push 2
push edx
mov dword [esp + 0x1c], eax
call fcn.004bf4c0
mov eax, dword [esp + 0x20]
add esp, 0xc
test ax, ax
je 0x5d2e04
movsx esi, word [esp + 0x24]
movzx eax, ax
add esi, eax
jmp 0x5d2e0f
xor esi, esi
jmp 0x5d2e0f
movsx esi, word [esp + 0x24]
add esi, edi
mov ecx, dword [esp + 0x54]
and esi, 0xffff
cmp byte [esi + ecx], 0
jne 0x5d2ead
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x68]
push str.uni_04X
push eax
mov dword [esp + 0x8c], edx
call fcn.0046a5f0
lea ecx, [esp + 0x70]
push ecx
call fcn.0043faa0
push 1
lea edx, [esp + 0x4c]
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00486200
mov edx, dword [0x682794]
mov ecx, dword [0x682790]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa8], edx
movzx edx, si
push edx
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x64]
push ecx
and eax, 0xfffffffe
push eax
push edx
push ebx
mov dword [esp + 0x70], eax
call fcn.00488b70
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x84]
add esp, 0x38
mov byte [esi + eax], 1
inc ebx
cmp bx, word [esp + 0x18]
mov dword [esp + 0x4c], ebx
jbe 0x5d2d9e
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ebx, dword [ebp + 8]
inc eax
cmp ax, word [esp + 0xc]
mov dword [esp + 0x28], eax
jb 0x5d2cf0
jmp 0x5d2ede
mov edi, dword [esp + 0x34]
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 8]
add esp, 8
mov eax, dword [esp + 0x78]
cmp eax, 0x10000
je 0x5d2f03
cmp eax, 0x20000
jne 0x5d2fe0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push 0
lea edx, [esp + 0x68]
push str.uni_04X
push edx
call fcn.0046a5f0
lea eax, [esp + 0x70]
push eax
call fcn.0043faa0
push 1
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
call fcn.00486200
mov edx, dword [0x682794]
mov ecx, dword [0x682790]
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa8], edx
mov edx, 1
push edx
push ecx
mov ecx, dword [esp + 0x64]
push ecx
and eax, 0xfffffffe
push eax
push edi
push esi
mov dword [esp + 0x70], eax
call fcn.00488b70
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
push 0xd
lea edx, [esp + 0xa0]
push str.uni_04X
push edx
call fcn.0046a5f0
lea eax, [esp + 0xa8]
add esp, 0x44
push eax
call fcn.0043faa0
push 1
lea ecx, [esp + 0x40]
push ecx
push eax
lea edx, [esp + 0x74]
push edx
call fcn.00486200
mov edx, dword [0x682794]
mov ecx, dword [0x682790]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], edx
mov edx, 2
push edx
push ecx
mov ecx, dword [esp + 0x58]
push ecx
and eax, 0xfffffffe
push eax
push edi
push esi
mov dword [esp + 0x64], eax
call fcn.00488b70
add esp, 0x2c
mov edi, dword [esp + 0x54]
xor esi, esi
cmp word [esp + 0x70], si
mov dword [esp + 0x14], esi
jbe 0x5d3025
movzx edx, si
cmp byte [edx + edi], 0
jne 0x5d3019
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.005d1da0
movzx edx, word [esp + 0x1c]
mov byte [edx + edi], 1
mov esi, dword [esp + 0x1c]
add esp, 8
inc esi
cmp si, word [esp + 0x70]
mov dword [esp + 0x14], esi
jb 0x5d2ff1
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x94]
push edx
push esi
push ebx
call fcn.004c0d80
add esp, 0x14
test eax, eax
je 0x5d334a
mov al, byte [esp + 0x8c]
test al, al
je 0x5d334a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x60]
push ecx
push 4
push 1
mov edx, esi
push 3
mov esi, ebx
call fcn.005d17e0
add esp, 0x14
test eax, eax
je 0x5d334a
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x6bf274]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov edx, dword [ebx + 0x10]
mov edi, eax
mov eax, dword [esp + 0x64]
push 0
push eax
push ebx
mov dword [esp + 0x48], edi
call dword [edx + 0x28]
add esp, 0x14
test eax, eax
je 0x5d30b1
call fcn.004856b0
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x10]
push ebx
push edx
push 1
push edi
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
lea eax, [edi + 6]
push 2
push edx
mov dword [esp + 0x2c], eax
call fcn.004bf4c0
mov ax, word [esp + 0x28]
shr ax, 1
add esp, 0x1c
test ax, ax
mov word [esp + 0xc], ax
mov dword [esp + 0x28], 0
jbe 0x5d333b
lea esp, [esp]
movzx esi, word [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
lea ebx, [edi + 0xe]
lea edx, [esp + 0x14]
lea eax, [ebx + esi*2]
push 2
push edx
mov dword [esp + 0x1c], eax
call fcn.004bf4c0
add esp, 0xc
cmp word [esp + 0x18], 0xffff
je 0x5d333b
movzx eax, word [esp + 0xc]
add eax, esi
lea edx, [esp + 0x48]
push edx
lea ecx, [ebx + eax*2 + 2]
lea eax, [esp + 0x14]
push 2
push eax
mov dword [esp + 0x1c], ecx
call fcn.004bf4c0
movzx ecx, word [esp + 0x18]
lea edx, [esi + ecx*2]
lea ecx, [esp + 0x30]
push ecx
lea eax, [ebx + edx*2 + 2]
lea edx, [esp + 0x20]
push 2
push edx
mov dword [esp + 0x28], eax
call fcn.004bf4c0
movzx eax, word [esp + 0x24]
lea ecx, [esi + eax*2]
add ecx, eax
lea eax, [esp + 0x58]
push eax
lea edx, [ebx + ecx*2 + 2]
lea ecx, [esp + 0x2c]
push 2
push ecx
mov dword [esp + 0x34], edx
call fcn.004bf4c0
mov ecx, dword [esp + 0x6c]
add esp, 0x24
cmp cx, word [esp + 0x18]
mov ebx, ecx
mov dword [esp + 0x4c], ebx
ja 0x5d3327
jmp 0x5d31b2
mov ecx, dword [esp + 0x48]
mov dx, word [esp + 0x40]
test dx, dx
je 0x5d3214
movzx eax, word [esp + 0xc]
lea eax, [eax + eax*2]
movzx ecx, cx
mov esi, eax
movzx eax, word [esp + 0x28]
sub esi, ecx
add esi, eax
movzx edx, dx
movzx ecx, bx
lea eax, [edi + 0xe]
add ecx, esi
add edx, eax
lea eax, [edx + ecx*2 + 2]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push 2
push edx
mov dword [esp + 0x1c], eax
call fcn.004bf4c0
mov eax, dword [esp + 0x20]
add esp, 0xc
test ax, ax
je 0x5d3210
movsx edi, word [esp + 0x24]
movzx eax, ax
add edi, eax
jmp 0x5d321e
xor edi, edi
jmp 0x5d321e
movsx ecx, word [esp + 0x24]
movzx edi, bx
add edi, ecx
push 0x5d1e30
push 8
push 0x41c
lea edx, [esp + 0x7c]
push 0x6891f0
push edx
and edi, 0xffff
mov dword [esp + 0x84], ebx
call dword [sym.imp.MSVCR71.dll_bsearch]
add esp, 0x14
test eax, eax
je 0x5d3313
mov esi, dword [eax + 4]
test esi, esi
je 0x5d3313
push esi
call fcn.0043faa0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x40]
push edx
push eax
push esi
mov dword [esp + 0x94], ecx
call fcn.00486200
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x98]
push ecx
and eax, 0xfffffffe
push edx
push eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa0]
push eax
push ebx
call fcn.00466820
add esp, 0x28
mov ebx, eax
call fcn.00466e30
test ebx, ebx
jne 0x5d330f
push esi
call fcn.0043faa0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x64]
push edx
push eax
push esi
mov dword [esp + 0x6c], ecx
call fcn.00486200
mov edx, dword [0x682794]
mov ecx, dword [0x682790]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x88], edx
movzx edx, di
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
and eax, 0xfffffffe
push eax
push edx
push ebx
mov dword [esp + 0x88], eax
call fcn.00488b70
add esp, 0x2c
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
inc ebx
cmp bx, word [esp + 0x18]
mov dword [esp + 0x4c], ebx
jbe 0x5d31ae
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [esp + 0xc]
mov dword [esp + 0x28], eax
jb 0x5d3100
mov eax, dword [0x6bf274]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 8]
add esp, 8
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0x4bc]
mov eax, dword [eax + 0x4b8]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.00487bc0
add esp, 0x10
test eax, eax
jne 0x5d33ae
mov ecx, dword [0x682794]
mov eax, dword [0x682790]
mov dword [esp + 0x88], ecx
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0x4bc]
mov eax, dword [eax + 0x4b8]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.00488b70
add esp, 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [0x6bec7c]
mov edx, dword [eax + 0xe4]
mov eax, dword [eax + 0xe0]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.00488b70
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret