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

Disassembly:
sub esp, 0x4c
mov cl, byte [eax + 0x2b5]
push ebx
mov ebx, dword [eax + 0x2b8]
push ebp
mov ebp, dword [eax + 0x68]
push esi
mov esi, dword [ebp + 0x1c]
push edi
xor edi, edi
test cl, cl
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
je 0x493331
cmp ebx, edi
je 0x493331
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
lea edx, [ecx*8]
push edx
push esi
call fcn.0046b4a0
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jne 0x493336
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
mov dword [ecx], eax
mov eax, dword [esp + 0x60]
cmp eax, dword [ebx + 0x20]
jae 0x493327
mov edx, dword [ebx + 0x24]
mov ecx, dword [edx + eax*4]
lea eax, [edx + eax*4]
cmp ecx, dword [eax + 4]
je 0x493327
push ecx
push ebp
call fcn.0046b6e0
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x493307
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x60]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4]
sub edx, dword [eax]
push edx
push ebp
call fcn.0046b810
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x493307
mov ecx, dword [ebx]
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
shl ecx, 2
push ecx
push esi
sub edi, edx
call fcn.0046b4a0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4932f4
mov eax, dword [ebx]
lea edx, [esp + 0x2c]
push edx
shl eax, 2
push eax
push esi
call fcn.0046b4a0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4932f4
mov edx, dword [ebx]
lea ecx, [esp + 0x30]
push ecx
shl edx, 2
push edx
push esi
call fcn.0046b4a0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4932f4
push ebp
call fcn.0046b900
movzx esi, ax
push ebp
mov dword [esp + 0x54], esi
call fcn.0046b900
movzx ecx, ax
add ecx, edi
add esp, 8
test esi, 0x8000
mov dword [esp + 0x14], ecx
je 0x492ff6
mov eax, dword [ebp]
mov esi, dword [ebp + 0x20]
sub esi, eax
add eax, ecx
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x44]
push eax
mov edi, ebp
call fcn.00491fc0
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [ebp]
sub ecx, eax
add esp, 4
add eax, esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [ebp + 0x20], eax
and esi, 0xfff
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], esi
jbe 0x4932cc
jmp 0x493014
mov ebx, dword [esp + 0x50]
push ebp
call fcn.0046b900
movzx edx, ax
push ebp
mov dword [esp + 0x50], edx
call fcn.0046b900
movzx edx, ax
add esp, 8
test dh, dh
mov dword [esp + 0x20], edx
jns 0x493063
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x493086
lea ecx, [ecx]
push ebp
call fcn.0046b900
mov ecx, dword [esp + 0x20]
movsx eax, ax
shl eax, 2
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [ebx]
inc esi
cmp esi, eax
jb 0x493040
mov edx, dword [esp + 0x20]
jmp 0x493086
mov ecx, dword [ebx + 0x18]
mov eax, edx
and eax, 0xfff
cmp eax, ecx
jae 0x4932c4
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x1c]
imul eax, ecx
mov edi, dword [esp + 0x1c]
lea esi, [esi + eax*4]
rep movsd dword es:[edi], dword [esi]
test dh, 0x40
je 0x4930e1
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x4930b4
push ebp
call fcn.0046b900
movsx edx, ax
mov eax, dword [esp + 0x30]
shl edx, 2
add esp, 4
mov dword [eax + esi*4], edx
mov eax, dword [ebx]
inc esi
cmp esi, eax
jb 0x493093
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x4930e1
lea esp, [esp]
push ebp
call fcn.0046b900
mov edx, dword [esp + 0x34]
movsx ecx, ax
shl ecx, 2
add esp, 4
mov dword [edx + esi*4], ecx
mov eax, dword [ebx]
inc esi
cmp esi, eax
jb 0x4930c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
push ebx
call fcn.00492580
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x493111
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4932ad
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x20]
sub ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
test ch, 0x20
je 0x49314a
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x38]
push eax
mov edi, ebp
call fcn.00491fc0
mov edi, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x24], eax
mov esi, eax
jmp 0x493156
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], edi
test edi, edi
mov eax, dword [esp + 0x68]
je 0x493160
mov eax, edi
push eax
push ebp
call fcn.004920d0
add esp, 8
test edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
je 0x493178
mov eax, edi
push eax
push ebp
call fcn.004920d0
add esp, 8
test esi, esi
mov dword [esp + 0x3c], eax
je 0x493261
test eax, eax
je 0x493261
mov eax, dword [esp + 0x28]
test eax, eax
je 0x493261
cmp esi, 0xffffffff
jne 0x493203
mov eax, dword [esp + 0x68]
xor esi, esi
test eax, eax
jbe 0x493261
jmp 0x4931c0
mov edx, dword [esp + 0x28]
movsx eax, word [edx + esi*2]
mov ecx, dword [esp + 0x18]
push ebx
push eax
lea edi, [ecx + esi*8]
call fcn.0046c070
add dword [edi], eax
mov edx, dword [esp + 0x44]
movsx eax, word [edx + esi*2]
mov ecx, dword [esp + 0x20]
push ebx
push eax
lea edi, [ecx + esi*8 + 4]
call fcn.0046c070
mov edx, dword [edi]
add edx, eax
mov eax, dword [esp + 0x78]
add esp, 0x10
inc esi
cmp esi, eax
mov dword [edi], edx
jb 0x4931c0
jmp 0x493261
xor esi, esi
test edi, edi
jbe 0x493261
lea esp, [esp]
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx + esi*2]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
lea edi, [eax + edx*8]
movsx edx, word [ecx + esi*2]
push ebx
push edx
call fcn.0046c070
add dword [edi], eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + esi*2]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
lea edi, [edx + ecx*8 + 4]
movsx ecx, word [eax + esi*2]
push ebx
push ecx
call fcn.0046c070
mov edx, dword [edi]
add edx, eax
mov eax, dword [esp + 0x48]
add esp, 0x10
inc esi
cmp esi, eax
mov dword [edi], edx
jb 0x493210
cmp dword [esp + 0x24], 0xffffffff
mov esi, dword [esp + 0x34]
je 0x49327a
lea edx, [esp + 0x24]
push edx
push esi
call fcn.0046b530
add esp, 8
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0046b530
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.0046b530
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x64]
add esi, edx
add esp, 0x10
add eax, ecx
mov dword [esp + 0x14], esi
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jb 0x493010
jmp 0x4932cc
mov dword [esp + 0x10], 8
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.0046b530
lea edx, [esp + 0x34]
push edx
push esi
call fcn.0046b530
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0046b530
add esp, 0x18
push ebp
call fcn.0046b8b0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x49331b
xor edi, edi
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.0046b530
mov edx, dword [esp + 0x6c]
add esp, 8
mov dword [edx], edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret