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

Disassembly:
sub esp, 0x70
mov edx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x38]
imul ebp, ebx, 0x98
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x3c]
push esi
mov esi, dword [ecx + 8]
sub esi, dword [ecx]
add ebp, 0xffffff68
add ebp, ecx
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x40]
push edi
mov edi, dword [ecx + 0xc]
sub edi, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x7c], ebp
cmp eax, dword [ebp + 8]
je 0x4b6219
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 0xc]
je 0x4b6219
push ebx
push edx
call fcn.004b7bf0
mov ebx, eax
add esp, 8
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x4b5c3a
mov eax, dword [esp + 0x88]
cmp eax, 1
jne 0x4b5c1d
mov edx, dword [ebp + 0x90]
mov edi, dword [ebp + 0x88]
push eax
mov eax, edx
sub edx, dword [ebp]
sub eax, edi
sub edi, dword [ebp]
push eax
mov eax, dword [esp + 0x8c]
push 1
push dword [eax + 0x34]
mov eax, dword [ebp + 0x94]
sub eax, dword [ebp + 4]
push eax
mov eax, dword [ebp + 0x8c]
sub eax, dword [ebp + 4]
push edx
push eax
push edi
push ebx
call fcn.004cb590
push ebx
call fcn.004cb540
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
push eax
push dword [esp + 0x3c]
call fcn.004b7f10
add esp, 8
cmp eax, 0xfffffff
jbe 0x4b5c44
push ebx
call fcn.004cb540
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret
shl eax, 4
push eax
call fcn.0049bcc0
mov ebp, eax
add esp, 4
mov dword [esp + 0x6c], ebp
test ebp, ebp
je 0x4b5c31
cmp dword [esp + 0x88], 1
mov dword [esp + 0x70], 1
jbe 0x4b61c2
mov eax, dword [esp + 0x38]
mov edx, esi
add eax, 0x98
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], eax
mov ebx, edi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x68], ebx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edi, dword [esi + 4]
sub eax, ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x40], eax
sub esi, edi
sub eax, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x74], eax
and ecx, 0x80000001
jns 0x4b5cb7
dec ecx
or ecx, 0xfffffffe
inc ecx
mov eax, esi
mov dword [esp + 0x5c], ecx
sub eax, ebx
mov dword [esp + 0x78], eax
and edi, 0x80000001
jns 0x4b5cd0
dec edi
or edi, 0xfffffffe
inc edi
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x68], edi
push eax
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push 0
push esi
push edi
call fcn.004b79b0
push 0
lea eax, [esp + 0x50]
push eax
push 0
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x88]
push dword [esp + 0x90]
push dword [esp + 0x98]
push dword [esp + 0xa0]
push 1
push esi
push edi
call fcn.004b79b0
add esp, 0x58
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push 2
push esi
push edi
call fcn.004b79b0
mov eax, dword [esp + 0x64]
add esp, 0x2c
mov esi, dword [eax + 0x40]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
mov edi, dword [eax + 0x44]
mov eax, dword [esp + 0x2c]
cmp eax, esi
jb 0x4b5d8c
sub eax, esi
mov dword [esp + 0x2c], eax
jmp 0x4b5d94
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
cmp eax, ecx
jb 0x4b5da4
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4b5dac
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
cmp eax, esi
jb 0x4b5dbc
sub eax, esi
mov dword [esp + 0x28], eax
jmp 0x4b5dc4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jb 0x4b5dd4
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x4b5ddc
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
cmp eax, edx
jb 0x4b5dec
sub eax, edx
mov dword [esp + 0x24], eax
jmp 0x4b5df4
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
cmp eax, edx
jb 0x4b5e04
sub eax, edx
mov dword [esp + 0x20], eax
jmp 0x4b5e0c
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
jb 0x4b5e1c
sub eax, edi
mov dword [esp + 0x18], eax
jmp 0x4b5e24
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
jb 0x4b5e34
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x4b5e3c
mov dword [esp + 0x14], 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x68]
push 2
call fcn.004b7f50
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x8c]
push 2
call fcn.004b7f50
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push 2
call fcn.004b7f50
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0xb0]
push 2
call fcn.004b7f50
mov ebx, dword [esp + 0x64]
add esp, 0x40
cmp dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x2c]
jne 0x4b5ec9
lea eax, [ebx*2 + 1]
lea ebx, [ecx + ecx]
cmp ebx, eax
jb 0x4b5eb5
mov ebx, eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
lea eax, [edi*2 + 1]
lea edi, [ecx + ecx]
jmp 0x4b5ee9
lea eax, [ecx*2 + 1]
add ebx, ebx
cmp ebx, eax
jb 0x4b5ed8
mov ebx, eax
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
add edi, edi
lea eax, [ecx*2 + 1]
cmp edi, eax
ja 0x4b5eef
mov edi, eax
mov eax, dword [esp + 0x40]
cmp edi, eax
jb 0x4b5ef9
mov edi, eax
cmp dword [esp + 0x64], 0
mov edx, dword [esp + 0x10]
jne 0x4b5f3c
mov eax, dword [esp + 0x18]
lea ecx, [edx + edx]
add eax, eax
mov dword [esp + 0x48], eax
inc eax
mov dword [esp + 0x3c], eax
cmp ecx, eax
jae 0x4b5f1e
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea eax, [eax*2 + 1]
lea esi, [ecx + ecx]
mov dword [esp + 0x30], esi
cmp esi, eax
jbe 0x4b5f76
mov eax, esi
jmp 0x4b5f7a
mov ecx, dword [esp + 0x18]
lea eax, [edx*2 + 1]
add ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jb 0x4b5f59
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esi, esi
mov dword [esp + 0x30], esi
lea eax, [ecx*2 + 1]
cmp esi, eax
jbe 0x4b5f76
mov eax, esi
jmp 0x4b5f7a
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x44]
cmp eax, esi
jb 0x4b5f86
mov dword [esp + 0x30], esi
xor esi, esi
cmp dword [esp + 0x44], esi
jbe 0x4b606a
cmp esi, edx
jb 0x4b5f9a
cmp esi, ecx
jb 0x4b5fba
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
add eax, ecx
cmp esi, eax
jb 0x4b605b
mov eax, dword [esp + 0x14]
add eax, ecx
cmp esi, eax
jae 0x4b605b
mov eax, dword [esp + 0x40]
cmp edi, 1
jb 0x4b5fcf
cmp edi, eax
jae 0x4b5fdb
mov dword [ebp + edi*4 - 4], 0
cmp edi, eax
jae 0x4b5fdb
mov dword [ebp + edi*4], 0
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x70]
push esi
push dword [esp + 0x4c]
push dword [esp + 0x78]
push ebp
call fcn.004b7e30
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push dword [esp + 0x90]
push dword [esp + 0x98]
push dword [esp + 0xb0]
push ebp
call fcn.004b4e20
add esp, 0x44
lea eax, [ebx*4]
add eax, ebp
push 1
push 0
push 1
push eax
lea eax, [esi + 1]
push eax
push edi
push esi
push ebx
push dword [esp + 0x54]
call fcn.004cbd40
add esp, 0x24
test eax, eax
je 0x4b6189
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [esp + 0x44]
jb 0x4b5f92
cmp ebx, edi
jae 0x4b616a
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x64]
sub eax, esi
inc eax
shl eax, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
lea ecx, [esi + edx*2]
mov edx, dword [esp + 0x10]
shl ecx, 4
add ecx, ebp
shl eax, 4
add eax, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], eax
mov esi, edi
sub esi, ebx
cmp esi, 4
jbe 0x4b60af
mov esi, 4
push 1
push 8
push 1
push ecx
push dword [esp + 0x2c]
lea ebp, [esi + ebx]
push ebp
push edx
push ebx
push dword [esp + 0x54]
call fcn.004cb590
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x90]
push 1
push 8
push 1
push eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0xa0]
push ebp
push eax
push ebx
push dword [esp + 0x78]
call fcn.004cb590
add esp, 0x48
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x1c]
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x8c]
push esi
call fcn.004b5050
push 1
push 4
push 1
push dword [esp + 0xa4]
push dword [esp + 0x64]
push ebp
push dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x78]
push ebx
call fcn.004cbd40
add esp, 0x48
test eax, eax
je 0x4b61a5
mov ecx, dword [esp + 0x60]
mov ebx, ebp
mov edx, dword [esp + 0x10]
cmp ebx, edi
jb 0x4b60a1
mov ebp, esi
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
cmp eax, dword [esp + 0x88]
jae 0x4b61be
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
jmp 0x4b5c70
push dword [esp + 0x34]
call fcn.004cb540
push ebp
call fcn.0049bd50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
push ebx
call fcn.004cb540
push esi
call fcn.0049bd50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ebx, dword [esp + 0x34]
push ebp
call fcn.0049bd50
mov ebp, dword [esp + 0x80]
push 1
mov edx, dword [ebp + 0x90]
mov eax, edx
mov edi, dword [ebp + 0x88]
sub eax, edi
sub edx, dword [ebp]
sub edi, dword [ebp]
push eax
mov eax, dword [esp + 0x90]
push 1
push dword [eax + 0x34]
mov eax, dword [ebp + 0x94]
sub eax, dword [ebp + 4]
push eax
mov eax, dword [ebp + 0x8c]
sub eax, dword [ebp + 4]
push edx
push eax
push edi
push ebx
call fcn.004cb590
push ebx
call fcn.004cb540
add esp, 0x2c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x70
ret