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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4b7f61
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x64
ret
push esi
push edi
mov edi, dword [esp + 0x78]
push ebx
push edi
call fcn.004bd155
add esp, 8
cmp eax, 0xffffffff
jne 0x4b7fb3
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x4b7f8f
push eax
push edi
call fcn.004b72c5
add esp, 8
mov esi, eax
jmp 0x4b7f91
xor esi, esi
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x4b844f
push eax
call fcn.004bd115
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, dword [edi]
add eax, 2
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004bf265
add esp, 8
cmp eax, ebp
jne 0x4b8451
mov edx, dword [edi]
lea eax, [esp + 0x44]
add edx, 2
push eax
mov dword [esp + 0x58], edx
call fcn.004b71d5
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x4b8442
lea ecx, [esp + 0x64]
push ecx
call fcn.004b71d5
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x4b8435
lea edx, [esp + 0x24]
push edi
push edx
call fcn.004bd3c5
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x4b8428
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.004bd3c5
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x4b841b
mov ecx, dword [edi + 8]
mov esi, dword [ebx + 8]
xor edx, edx
cmp ecx, esi
setne dl
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], edx
call fcn.004b7445
cdq
mov ecx, 0x1c
idiv ecx
add esp, 4
cmp edx, 0x1b
jge 0x4b80ab
mov edi, 0x1b
sub edi, edx
lea edx, [esp + 0x24]
push edx
mov eax, edx
push edi
push eax
mov dword [esp + 0x20], edi
call fcn.004bd025
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x4b840e
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push edi
push edx
call fcn.004bd025
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x4b840e
jmp 0x4b80af
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
dec ebx
dec ebp
mov edi, ebx
sub edi, ebp
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x18], ebp
call fcn.004bf1e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b840e
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004b73d5
add esp, 8
cmp eax, 0xffffffff
je 0x4b8132
jmp 0x4b80f5
mov eax, dword [esp + 0x60]
inc dword [eax + edi*4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edx, eax
push edx
call fcn.004b7ba5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b840e
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004b73d5
add esp, 8
cmp eax, 0xffffffff
jne 0x4b80f5
lea edx, [esp + 0x34]
push edi
push edx
call fcn.004bf175
lea eax, [ebp + 1]
add esp, 8
cmp ebx, eax
jl 0x4b8398
cmp ebx, dword [esp + 0x24]
jg 0x4b838c
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + ebx*4]
mov edx, dword [ecx + ebp*4]
cmp eax, edx
jne 0x4b8184
mov edx, dword [esp + 0x60]
mov eax, ebx
sub eax, ebp
lea edi, [eax*4]
mov dword [esp + 0x7c], eax
mov dword [edi + edx - 4], 0xfffffff
jmp 0x4b81d4
mov esi, dword [esi + ebx*4 - 4]
xor ecx, ecx
shld ecx, eax, 0x1c
xor edi, edi
push edi
push edx
shl eax, 0x1c
or ecx, edi
or eax, esi
push ecx
push eax
call fcn.00477e45
test edx, edx
ja 0x4b81ab
cmp eax, 0xfffffff
jbe 0x4b81b8
mov eax, 0xfffffff
mov dword [esp + 0x20], 0
mov ecx, ebx
sub ecx, ebp
lea edi, [ecx*4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x60]
and eax, 0xfffffff
mov dword [edi + ecx - 4], eax
mov eax, dword [esp + 0x60]
mov edx, dword [edi + eax - 4]
inc edx
and edx, 0xfffffff
mov dword [edi + eax - 4], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
dec ecx
lea edx, [esp + 0x44]
and ecx, 0xfffffff
push edx
mov dword [edi + eax - 4], ecx
call fcn.004bd115
lea eax, [ebp - 1]
add esp, 4
test eax, eax
jge 0x4b8212
xor eax, eax
jmp 0x4b821a
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ebp*4 - 4]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebp*4]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 2
mov ecx, dword [edi + eax - 4]
push edx
push ecx
push edx
call fcn.004b7df5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b840e
lea eax, [ebx - 2]
test eax, eax
jge 0x4b8262
xor eax, eax
jmp 0x4b8269
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + eax*4]
mov edx, dword [esp + 0x70]
mov dword [edx], eax
lea eax, [ebx - 1]
test eax, eax
jge 0x4b827a
xor eax, eax
jmp 0x4b8282
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + ebx*4 - 4]
mov edx, dword [esp + 0x70]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esp + 0x70]
mov dword [edx + 8], ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x6c], 3
call fcn.004bd155
add esp, 8
cmp eax, 1
je 0x4b81e7
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
lea edx, [esp + 0x44]
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004b7df5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b840e
mov ebp, dword [esp + 0x7c]
dec ebp
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004bf1e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b840e
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, ecx
push eax
call fcn.004b7ba5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b840e
cmp dword [esp + 0x2c], 1
jne 0x4b8388
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004b72c5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b840e
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004bf1e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b840e
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, ecx
push eax
call fcn.004b7a25
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b840e
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
dec ecx
and ecx, 0xfffffff
mov dword [edi + eax - 4], ecx
mov ebp, dword [esp + 0x10]
dec ebx
lea eax, [ebp + 1]
cmp ebx, eax
jge 0x4b814b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4b83aa
mov dword [esp + 0x2c], 0
jmp 0x4b83b5
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x80]
test esi, esi
je 0x4b83df
lea ecx, [esp + 0x54]
push ecx
call fcn.004bcff5
lea edx, [esp + 0x58]
push esi
push edx
call fcn.004bf125
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 8], eax
mov esi, dword [esp + 0x84]
test esi, esi
je 0x4b840c
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
mov eax, ecx
push eax
call fcn.004bd3f5
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004bf125
add esp, 0x18
xor esi, esi
lea edx, [esp + 0x34]
push edx
call fcn.004b7235
add esp, 4
lea eax, [esp + 0x24]
push eax
call fcn.004b7235
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.004b7235
add esp, 4
lea edx, [esp + 0x44]
push edx
call fcn.004b7235
add esp, 4
lea eax, [esp + 0x54]
push eax
call fcn.004b7235
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret