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

Disassembly:
sub esp, 0x70
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
mov ebx, ecx
lea esi, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
call fcn.004b6ef0
xor edi, edi
cmp eax, edi
jne 0x4b7a2e
mov eax, dword [esp + 0x50]
cmp eax, edi
ja 0x4b74f3
mov esi, dword [esp + 0x4c]
cmp esi, 0x80000000
jae 0x4b74f3
cmp eax, edi
ja 0x4b74f3
cmp esi, 0x4000000
jb 0x4b750b
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x70
ret
cmp esi, 0x20
ja 0x4b74f3
mov dword [ebx + 0x10], esi
cmp esi, edi
jne 0x4b7688
mov dword [ebx], edi
cmp esi, edi
jbe 0x4b7538
xor ecx, ecx
mov edx, esi
mov eax, dword [ebx]
lea eax, [ecx + eax + 0x10]
add ecx, 0x18
sub edx, 1
mov dword [eax], edi
mov dword [eax + 4], edi
jne 0x4b7525
mov dword [esp + 0x18], edi
cmp esi, edi
jbe 0x4b74f3
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
add ebx, dword [esp + 0x34]
mov esi, dword [ebp + 4]
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x4b78ab
mov eax, dword [ebp]
dec esi
mov dword [ebp + 4], esi
mov dl, byte [eax]
lea ecx, [eax + 1]
movzx eax, dl
and eax, 0xf
mov byte [esp + 0x13], dl
mov dword [ebp], ecx
mov edi, 0
jbe 0x4b759b
lea ecx, [ecx]
test esi, esi
je 0x4b78ab
dec esi
mov dword [ebp + 4], esi
mov dl, byte [ecx]
mov byte [esp + edi + 0x6c], dl
inc ecx
inc edi
mov dword [ebp], ecx
cmp edi, eax
jb 0x4b7580
cmp eax, 8
ja 0x4b74f3
xor ecx, ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
cmp eax, ecx
jbe 0x4b75dc
xor edi, edi
lea esi, [esp + eax + 0x6b]
mov dword [esp + 0x38], eax
lea ebx, [ebx]
movzx eax, byte [esi]
cdq
mov ecx, edi
call fcn.004ef130
or dword [ebx + 8], eax
or dword [ebx + 0xc], edx
dec esi
add edi, 8
sub dword [esp + 0x38], 1
jne 0x4b75c0
test byte [esp + 0x13], 0x10
je 0x4b76c0
lea esi, [esp + 0x5c]
mov edi, ebp
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x5c]
jb 0x4b7617
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b762c
cmp eax, 0x4000000
jae 0x4b74f3
lea esi, [esp + 0x64]
mov dword [ebx], eax
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x68]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x64]
jb 0x4b765c
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b7671
cmp eax, 0x4000000
jae 0x4b74f3
cmp dword [ebx], 0x20
mov dword [ebx + 4], eax
ja 0x4b74f3
cmp eax, 0x20
ja 0x4b74f3
jmp 0x4b76cd
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
mov dword [ebx], eax
cmp eax, edi
jne 0x4b751d
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x70
ret
mov dword [ebx], 1
mov dword [ebx + 4], 1
test byte [esp + 0x13], 0x20
je 0x4b772c
xor eax, eax
lea esi, [esp + 0x54]
mov edi, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov esi, dword [esp + 0x54]
xor edi, edi
mov dword [ebx + 0x14], edi
cmp esi, edi
jne 0x4b7703
mov dword [ebx + 0x10], edi
jmp 0x4b771a
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0x10], eax
cmp eax, edi
je 0x4b76a8
mov dword [ebx + 0x14], esi
mov edi, dword [ebx + 0x10]
mov eax, ebp
call fcn.004b6e80
test eax, eax
jne 0x4b7a2e
test byte [esp + 0x13], 0x80
je 0x4b7861
jmp 0x4b7740
mov eax, dword [ebp + 4]
test eax, eax
je 0x4b78ab
lea ecx, [eax - 1]
mov eax, dword [ebp]
mov dword [ebp + 4], ecx
mov bl, byte [eax]
mov dl, bl
and dl, 0xf
lea esi, [eax + 1]
movzx eax, dl
cdq
xor edi, edi
mov dword [ebp], esi
cmp edx, edi
ja 0x4b78ab
jb 0x4b7779
cmp eax, ecx
ja 0x4b78ab
sub ecx, eax
add esi, eax
mov dword [ebp + 4], ecx
mov dword [ebp], esi
test bl, 0x10
je 0x4b7814
lea esi, [esp + 0x3c]
mov edi, ebp
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x3c]
jb 0x4b77bc
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b77d1
cmp eax, 0x4000000
jae 0x4b74f3
lea esi, [esp + 0x24]
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x24]
jb 0x4b77ff
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b7814
cmp eax, 0x4000000
jae 0x4b74f3
test bl, 0x20
je 0x4b7855
xor eax, eax
lea esi, [esp + 0x44]
mov edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x4b78ab
mov ecx, dword [esp + 0x44]
jb 0x4b784d
cmp ecx, eax
ja 0x4b78ab
sub eax, ecx
add dword [ebp], ecx
mov dword [ebp + 4], eax
test bl, bl
js 0x4b7740
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, dword [ebx + 4]
add dword [esp + 0x34], 0x18
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x4c]
jb 0x4b7544
xor ebx, ebx
cmp eax, ebx
je 0x4b74f3
mov edi, dword [esp + 0x1c]
lea esi, [eax - 1]
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
cmp esi, ebx
jne 0x4b78c3
mov dword [edi + 4], ebx
jmp 0x4b78e2
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x70
ret
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esi*8]
push ecx
push eax
call edx
add esp, 8
mov dword [edi + 4], eax
cmp eax, ebx
je 0x4b76a8
mov dword [esp + 0x18], ebx
cmp esi, ebx
jbe 0x4b799e
mov edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
lea esi, [esp + 0x24]
mov edi, ebp
lea ebx, [ecx + edx*8]
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x24]
jb 0x4b792e
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b7943
cmp eax, 0x4000000
jae 0x4b74f3
lea esi, [esp + 0x3c]
mov dword [ebx], eax
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x3c]
jb 0x4b7973
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b7988
cmp eax, 0x4000000
jae 0x4b74f3
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x4b78f0
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x4b74f3
mov edi, dword [esp + 0x1c]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [edi + 0x18], esi
jne 0x4b7a41
mov dword [edi + 8], 0
xor ebx, ebx
test esi, esi
jbe 0x4b7a2c
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
lea ecx, [eax + ebx*4]
lea esi, [esp + 0x24]
mov edi, ebp
mov dword [esp + 0x2c], ecx
call fcn.004b6ef0
test eax, eax
jne 0x4b7a2e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x4b74f3
mov eax, dword [esp + 0x24]
jb 0x4b7a0a
cmp eax, 0x80000000
jae 0x4b74f3
test ecx, ecx
ja 0x4b74f3
jb 0x4b7a1f
cmp eax, 0x4000000
jae 0x4b74f3
mov edx, dword [esp + 0x2c]
inc ebx
mov dword [edx], eax
cmp ebx, dword [esp + 0x14]
jb 0x4b79d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x70
ret
lea eax, [esi*4]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call ecx
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4b76a8
cmp esi, 1
jne 0x4b79ca
xor esi, esi
test ebx, ebx
jbe 0x4b7a97
mov ebp, dword [edi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x4b7a97
mov edx, dword [edi + 4]
jmp 0x4b7a80
cmp dword [edx], esi
je 0x4b7a8e
inc ecx
add edx, 8
cmp ecx, ebp
jb 0x4b7a80
jmp 0x4b7a97
test ecx, ecx
jl 0x4b7a97
inc esi
cmp esi, ebx
jb 0x4b7a72
cmp esi, ebx
je 0x4b74f3
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e8c89
add esp, 0x70
ret