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

Disassembly:
sub esp, 0x80
mov eax, dword [0x598c90]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, 4
push ebp
xor ebp, ebp
mov edx, 1
push esi
mov esi, ecx
add dword [esi + 0xa4], edx
mov ecx, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xa4]
push edi
mov edi, 8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
cmp eax, dword [esi + 0x90]
jb 0x4b3c12
cmp byte [esi + 0xe3], 0
push ebx
je 0x4b3af3
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xa8]
add eax, edx
mov dword [esi + 0xa4], ebp
call fcn.004ab170
jmp 0x4b3a55
mov edi, 8
inc byte [esi + 0xe4]
mov bl, byte [esi + 0xe4]
cmp bl, 7
jae 0x4b3aee
mov eax, dword [esi + 0x88]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub eax, dword [esp + ecx + 0x30]
mov edi, dword [esp + ecx + 0x14]
lea eax, [eax + edi - 1]
xor edx, edx
div edi
mov edi, eax
mov al, byte [esi + 0xe9]
cmp al, 8
mov dword [esi + 0xa0], edi
movzx eax, al
jb 0x4b3aa4
shr eax, 3
imul eax, edi
jmp 0x4b3aad
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x30], 2
mov dword [esi + 0x9c], eax
jne 0x4b3ae0
mov edx, dword [esi + 0x8c]
sub edx, dword [esp + ecx + 0x68]
mov ebp, dword [esp + ecx + 0x4c]
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
mov dword [esi + 0x90], eax
test edi, edi
je 0x4b3a50
cmp bl, 7
jb 0x4b3c11
mov edi, 8
mov edx, 1
test byte [esi + 0x2c], 0x20
jne 0x4b3c06
lea eax, [esp + 0x13]
mov byte [esp + 0x84], 0x49
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov ebx, dword [esp + 0x84]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov edi, edi
cmp dword [esi + 0x38], ebp
jne 0x4b3bd7
cmp dword [esi + 0xcc], ebp
jne 0x4b3ba2
lea ebp, [esi + 0xdc]
push 0
call fcn.004b1a20
lea ecx, [esp + 0x88]
push ecx
mov edx, 4
mov ecx, esi
call fcn.004ad360
push esi
lea ecx, [esp + 0x90]
call fcn.004b1990
push esi
mov dword [esi + 0xcc], eax
call fcn.004abab0
push ebp
mov edi, 4
mov eax, esi
call fcn.004b19f0
add esp, 0x14
cmp dword [ebp], ebx
je 0x4b3b97
mov ecx, esi
call fcn.004abfd0
cmp dword [esi + 0xcc], 0
je 0x4b3b47
xor ebp, ebp
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], edx
cmp eax, ecx
jbe 0x4b3bbb
mov dword [esi + 0x38], ecx
mov edi, dword [esi + 0x38]
push edx
mov eax, esi
call fcn.004b19f0
mov edx, dword [esi + 0x38]
add esp, 4
sub dword [esi + 0xcc], edx
mov edi, 8
lea eax, [esi + 0x34]
push eax
call fcn.00494b70
add esp, 4
cmp eax, 1
je 0x4b3bfc
cmp eax, ebp
je 0x4b3bf3
mov ecx, esi
call fcn.004abfd0
cmp dword [esi + 0x44], ebp
jne 0x4b3b30
or dword [esi + 0x28], edi
or dword [esi + 0x2c], 0x20
mov dword [esi + 0x44], ebp
lea edx, [esi + 0x34]
call fcn.00494950
or dword [esi + 0x28], edi
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0051e437
add esp, 0x80
ret