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

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [eax + 0xc], edx
call fcn.0048ec70
mov ecx, dword [ebx + 0x3f8]
sub ecx, dword [ebx + 0x4e8]
mov esi, dword [ebx + 0x3f0]
mov edx, dword [ebx + 0x3f4]
mov eax, dword [ebx + 0x3fc]
add esi, dword [ebx + 0x4e0]
add edx, dword [ebx + 0x4e4]
sub eax, dword [ebx + 0x4ec]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x4f8]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
je 0x4b0116
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x4b0116
mov ecx, dword [ebx + 0x4f8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
sub dword [esp + 0x78], eax
mov ecx, dword [ebx + 0x4fc]
cmp ecx, ebp
je 0x4b0142
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x4b0142
mov ecx, dword [ebx + 0x4fc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe8]
call edx
sub dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x4d0]
cmp eax, ebp
je 0x4b0159
mov ecx, dword [ebx + 0x4d4]
sub ecx, eax
sar ecx, 2
jne 0x4b0160
push ebp
push ebp
jmp 0x4b042b
mov ecx, dword [ebx + 0x4f8]
cmp ecx, ebp
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x6c], edi
je 0x4b01a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x4b01a0
mov eax, dword [ebx + 0x4f8]
sub esi, dword [eax + 0x4d4]
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x4fc]
cmp ecx, ebp
je 0x4b01c8
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x4b01c8
mov ecx, dword [ebx + 0x4fc]
sub edi, dword [ecx + 0x4d4]
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
sub esi, dword [esp + 0x74]
mov ecx, dword [ebx + 0x4fc]
cmp ecx, ebp
mov edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
je 0x4b0212
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x4b0212
mov ecx, dword [ebx + 0x4fc]
add edi, dword [ecx + 0x4d0]
mov dword [esp + 0x40], edi
mov ecx, dword [ebx + 0x4f8]
cmp ecx, ebp
je 0x4b023a
mov edx, dword [ecx]
mov eax, dword [edx + 0xd0]
call eax
test al, al
je 0x4b023a
mov ecx, dword [ebx + 0x4f8]
add esi, dword [ecx + 0x4d0]
mov dword [esp + 0x44], esi
xor esi, esi
mov ecx, dword [ebx + 0x4d0]
test ecx, ecx
mov dword [esp + 0x18], esi
je 0x4b0421
mov eax, dword [ebx + 0x4d4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4b0421
test ecx, ecx
je 0x4b0274
mov eax, dword [ebx + 0x4d4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4b0279
call fcn.004e89bf
mov edx, dword [ebx + 0x4d0]
mov ebp, dword [edx + esi*4]
mov eax, dword [ebp]
mov edx, dword [eax + 0xd0]
mov ecx, ebp
call edx
test al, al
je 0x4b0415
mov eax, dword [ebp]
mov edx, dword [eax + 0x134]
mov ecx, ebp
call edx
test al, al
jne 0x4b0403
mov eax, dword [ebp]
mov edx, dword [eax + 0x144]
mov ecx, ebp
call edx
test al, al
jne 0x4b0403
mov eax, dword [ebp]
mov edx, dword [eax + 0x13c]
mov ecx, ebp
call edx
test al, al
jne 0x4b0403
mov eax, dword [ebp]
mov edx, dword [eax + 0x98]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp]
push ecx
push edx
mov edx, dword [eax + 0xa0]
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call edx
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x4b0316
mov edx, edi
sub edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0x3c]
test edi, edi
mov ecx, dword [esp + 0x4c]
jne 0x4b0330
mov edi, dword [esp + 0x44]
sub edi, ecx
sub edi, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
test byte [ebp + 0x324], 0x10
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
je 0x4b0358
mov eax, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x6c], eax
test byte [ebp + 0x324], 0x20
je 0x4b0370
mov eax, dword [esp + 0x34]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
add edx, esi
add esi, eax
add esi, dword [esp + 0x6c]
add edi, ecx
mov ecx, dword [esp + 0x5c]
add edi, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [ebp]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc4]
mov ecx, ebp
call edx
sub esi, dword [esp + 0x58]
cmp dword [esp + 0x20], esi
jg 0x4b03c7
mov dword [esp + 0x20], esi
sub edi, dword [esp + 0x5c]
cmp dword [esp + 0x1c], edi
jg 0x4b03d5
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 0x324]
test al, 0x10
je 0x4b03e7
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
test al, 0x20
mov esi, dword [esp + 0x18]
je 0x4b0415
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], edx
add esi, 1
jmp 0x4b023c
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c4]
lea ecx, [esp + 0x70]
push ecx
push ebp
mov ecx, ebx
call edx
mov edi, dword [esp + 0x40]
add esi, 1
jmp 0x4b023c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [ebx]
mov edx, dword [edx + 0x2d0]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14