Function at 0x4962a0
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 0x496771
cmp ebx, edi
je 0x496771
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
lea edx, [ecx*8]
push edx
push esi
call fcn.0046e8e0
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jne 0x496776
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 0x496767
mov edx, dword [ebx + 0x24]
mov ecx, dword [edx + eax*4]
lea eax, [edx + eax*4]
cmp ecx, dword [eax + 4]
je 0x496767
push ecx
push ebp
call fcn.0046eb20
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x496747
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.0046ec50
add esp, 8
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x496747
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.0046e8e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x496734
mov eax, dword [ebx]
lea edx, [esp + 0x2c]
push edx
shl eax, 2
push eax
push esi
call fcn.0046e8e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x496734
mov edx, dword [ebx]
lea ecx, [esp + 0x30]
push ecx
shl edx, 2
push edx
push esi
call fcn.0046e8e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x496734
push ebp
call fcn.0046ed40
movzx esi, ax
push ebp
mov dword [esp + 0x54], esi
call fcn.0046ed40
movzx ecx, ax
add ecx, edi
add esp, 8
test esi, 0x8000
mov dword [esp + 0x14], ecx
je 0x496436
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.00495400
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 0x49670c
jmp 0x496454
mov ebx, dword [esp + 0x50]
push ebp
call fcn.0046ed40
movzx edx, ax
push ebp
mov dword [esp + 0x50], edx
call fcn.0046ed40
movzx edx, ax
add esp, 8
test dh, dh
mov dword [esp + 0x20], edx
jns 0x4964a3
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x4964c6
lea ecx, [ecx]
push ebp
call fcn.0046ed40
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 0x496480
mov edx, dword [esp + 0x20]
jmp 0x4964c6
mov ecx, dword [ebx + 0x18]
mov eax, edx
and eax, 0xfff
cmp eax, ecx
jae 0x496704
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 0x496521
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x4964f4
push ebp
call fcn.0046ed40
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 0x4964d3
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jbe 0x496521
lea esp, [esp]
push ebp
call fcn.0046ed40
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 0x496500
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.004959c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x496551
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4966ed
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 0x49658a
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x38]
push eax
mov edi, ebp
call fcn.00495400
mov edi, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x24], eax
mov esi, eax
jmp 0x496596
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], edi
test edi, edi
mov eax, dword [esp + 0x68]
je 0x4965a0
mov eax, edi
push eax
push ebp
call fcn.00495510
add esp, 8
test edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
je 0x4965b8
mov eax, edi
push eax
push ebp
call fcn.00495510
add esp, 8
test esi, esi
mov dword [esp + 0x3c], eax
je 0x4966a1
test eax, eax
je 0x4966a1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4966a1
cmp esi, 0xffffffff
jne 0x496643
mov eax, dword [esp + 0x68]
xor esi, esi
test eax, eax
jbe 0x4966a1
jmp 0x496600
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.0046f4b0
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.0046f4b0
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 0x496600
jmp 0x4966a1
xor esi, esi
test edi, edi
jbe 0x4966a1
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.0046f4b0
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.0046f4b0
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 0x496650
cmp dword [esp + 0x24], 0xffffffff
mov esi, dword [esp + 0x34]
je 0x4966ba
lea edx, [esp + 0x24]
push edx
push esi
call fcn.0046e970
add esp, 8
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0046e970
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.0046e970
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 0x496450
jmp 0x49670c
mov dword [esp + 0x10], 8
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.0046e970
lea edx, [esp + 0x34]
push edx
push esi
call fcn.0046e970
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0046e970
add esp, 0x18
push ebp
call fcn.0046ecf0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x49675b
xor edi, edi
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.0046e970
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