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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x90
mov ebx, dword [esp + 0xa4]
xor edx, edx
mov edi, 4
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], edx
mov eax, 2
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov ecx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov ebp, 8
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 0xe4]
add ecx, 1
cmp ecx, dword [ebx + 0xd0]
jb 0x4b7d7d
movzx edx, byte [ebx + 0x123]
test edx, edx
jne 0x4b7b9a
mov dword [ebx + 0xe4], ecx
jmp 0x4b7c55
mov edx, dword [ebx + 0xd8]
xor ecx, ecx
mov dword [ebx + 0xe4], ecx
add edx, 1
push edx
push ecx
push dword [ebx + 0xe8]
push ebx
call fcn.004b3320
add esp, 0x10
movzx ecx, byte [ebx + 0x124]
add ecx, 1
mov byte [ebx + 0x124], cl
movzx ebp, cl
cmp ebp, 7
jge 0x4b7c4c
mov esi, dword [esp + ebp*4 + 0x44]
mov edi, dword [esp + ebp*4 + 0x60]
mov edx, dword [ebx + 0xc8]
neg edi
add edi, esi
lea eax, [edi + edx - 1]
xor edx, edx
div esi
movzx edx, byte [ebx + 0x129]
cmp edx, 8
mov edi, eax
mov dword [ebx + 0xe0], edi
jl 0x4b7c0a
shr edx, 3
imul edx, edi
jmp 0x4b7c13
imul edx, edi
add edx, 7
shr edx, 3
add edx, 1
mov dword [ebx + 0xdc], edx
mov edx, dword [ebx + 0x70]
test dl, 2
jne 0x4b7c4c
mov esi, dword [esp + ebp*4 + 0xc]
mov edx, dword [esp + ebp*4 + 0x28]
mov eax, dword [ebx + 0xcc]
neg edx
add edx, esi
lea eax, [edx + eax - 1]
xor edx, edx
div esi
test edi, edi
mov dword [ebx + 0xd0], eax
je 0x4b7bc3
cmp ebp, 7
jl 0x4b7d72
mov edx, dword [ebx + 0x6c]
test dl, 0x20
je 0x4b7c6b
mov edx, dword [ebx + 0x10c]
lea edi, [ebx + 0x74]
jmp 0x4b7d4a
mov byte [esp + 0x84], 0x49
lea edx, [esp + 0x7c]
lea edi, [ebx + 0x74]
lea ebp, [ebx + 0x11c]
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov byte [esp + 0x88], 0
mov dword [ebx + 0x84], 1
mov dword [ebx + 0x80], edx
mov edx, dword [ebx + 0x78]
test edx, edx
jne 0x4b7cfe
mov eax, dword [ebx + 0x10c]
test eax, eax
jne 0x4b7e40
mov dword [esp + 0x80], edi
mov ecx, dword [ebx + 0xb0]
mov edi, ecx
test ecx, ecx
jae 0x4b7da1
xor esi, esi
jmp 0x4b7ce6
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xac]
mov eax, ebx
call fcn.004b4ac0
sub esi, edi
cmp esi, edi
ja 0x4b7ce0
jmp 0x4b7d8e
push 1
push edi
call fcn.00482650
add esp, 8
cmp eax, 1
je 0x4b7f01
test eax, eax
jne 0x4b7ee1
mov edx, dword [ebx + 0x84]
test edx, edx
jne 0x4b7cb0
push 0x7ea0b4
push ebx
call fcn.004b35f8
add esp, 8
mov edx, dword [ebx + 0x10c]
or dword [ebx + 0x68], 8
or dword [ebx + 0x6c], 0x20
mov dword [ebx + 0x84], 0
test edx, edx
jne 0x4b7ece
mov edx, dword [ebx + 0x78]
test edx, edx
jne 0x4b7ece
push edi
call fcn.004843b0
or dword [ebx + 0x68], 8
add esp, 0x94
pop ebx
pop ebp
pop esi
pop edi
ret
add esp, 0x90
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [ebx + 0xe4], ecx
add esp, 0x90
pop ebx
pop ebp
pop esi
pop edi
ret
test esi, esi
je 0x4b7da1
mov edx, dword [ebx + 0xac]
mov eax, ebx
mov ecx, esi
call fcn.004b4ac0
push ebx
call fcn.004b8350
pop ecx
test eax, eax
jne 0x4b7e82
lea edx, [esp + 0x8c]
push 4
push edx
push ebx
call fcn.004aa930
add esp, 0xc
lea edx, [esp + 0x8c]
mov eax, ebx
call fcn.004b7f48
push ebx
mov dword [ebx + 0x10c], eax
call fcn.004aa2ac
pop ecx
test ebx, ebx
je 0x4b7df7
push 4
push ebp
push ebx
call fcn.004aa930
push 4
push ebp
push ebx
call fcn.004aa2c4
add esp, 0x18
lea edi, [esp + 0x84]
mov esi, ebp
mov ecx, 4
xor eax, eax
test ecx, ecx
je 0x4b7e1c
mov al, byte [esi]
sub al, byte [edi]
jne 0x4b7e1c
add esi, 1
add edi, 1
sub ecx, 1
jne 0x4b7e0b
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x4b7e72
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x4b7ccc
mov edi, dword [esp + 0x80]
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x74], edx
cmp ecx, eax
jbe 0x4b7e5a
mov ecx, eax
mov dword [ebx + 0x78], eax
jmp 0x4b7e5d
mov dword [ebx + 0x78], ecx
mov eax, ebx
call fcn.004b4ac0
mov edx, dword [ebx + 0x78]
sub dword [ebx + 0x10c], edx
jmp 0x4b7cfe
push 0x7ea0b4
push ebx
call fcn.004b365c
add esp, 8
jmp 0x4b7e2b
movzx ecx, byte [ebx + 0x11c]
and ecx, 0x20
je 0x4b7e99
mov edx, dword [ebx + 0x6c]
test edx, 0x200
je 0x4b7ea8
test ecx, ecx
jne 0x4b7ebb
mov edx, dword [ebx + 0x6c]
test edx, 0x400
je 0x4b7ebb
push 0x7ea0b4
push ebx
call fcn.004b3570
add esp, 8
jmp 0x4b7db0
push 0x7ea0b4
push ebx
call fcn.004b35b4
add esp, 8
jmp 0x4b7db0
push 0x7ea0b4
push ebx
call fcn.004b35f8
add esp, 8
jmp 0x4b7d5d
mov edx, dword [ebx + 0x8c]
test edx, edx
je 0x4b7efa
push edx
push ebx
call fcn.004b365c
add esp, 8
jmp 0x4b7d1a
mov edx, 0x7ea0b4
jmp 0x4b7eeb
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x4b7f29
mov edx, dword [ebx + 0x78]
test edx, edx
jne 0x4b7f29
mov edx, dword [ebx + 0x10c]
test edx, edx
jne 0x4b7f29
or dword [ebx + 0x68], 8
or dword [ebx + 0x6c], 0x20
jmp 0x4b7d40
push 0x7ea0b4
push ebx
call fcn.004b35f8
add esp, 8
mov edx, dword [ebx + 0x10c]
jmp 0x4b7f1c