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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4befae
sub esp, 0x6c
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x98]
mov ebx, edx
sub edx, ecx
lea eax, [ecx - 1]
cmp eax, ecx
jae 0x4befa8
mov ebp, dword [esp + 0x94]
mov esi, dword [ebp + ecx*4 - 4]
nop
nop
cmp esi, 0x10000
jb 0x4bef77
shr esi, 0x10
mov eax, 0x10
cmp esi, 0x100
jb 0x4bef70
shr esi, 8
lea edi, [eax + 8]
cmp esi, 0x100
jae 0x4bef9c
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edi
lea eax, [0x5ee6c0]
movzx eax, byte [eax + esi]
mov dword [esp + 0x54], eax
mov dword [esp], ecx
call fcn.004be9f0
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x40], ebx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x94]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
lea esi, [edi + esi - 0x20]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x18], esi
call fcn.004c5430
mov ecx, dword [esp + 0x8c]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x84]
cmp eax, edx
jg 0x4beefb
ja 0x4bef95
mov ebx, dword [esp + 0x7c]
cmp ecx, edx
ja 0x4bef90
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], ebx
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
call fcn.004c5430
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jae 0x4bef87
mov ebx, dword [esp + 0x68]
mov dword [ebx + ecx*4], eax
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x4beeea
mov ebp, dword [esp + 0x70]
lea esi, [ebp + eax*4 - 4]
mov edi, dword [esp + 0x38]
mov ecx, edi
lea edi, [ebx + edi*4 - 4]
cmp esi, edi
jne 0x4beedf
xor eax, eax
xor ebp, ebp
mov esi, dword [esp + 0x48]
lea edi, [esi + 1]
cmp edi, ebp
jg 0x4bee60
ja 0x4bef7e
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], eax
mov esi, dword [esp + 0x98]
cmp esi, 0x64
jge 0x4bee27
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], esi
call fcn.004befc0
nop
lea eax, [0x601f50]
mov dword [esp], eax
lea eax, [0x5195e0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00469670
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.004bb430
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x18], edi
call fcn.004c5480
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call fcn.004bb430
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0xa4], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
add esp, 0x6c
ret
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], esi
call fcn.004bf4d0
jmp 0x4bed40
test esi, esi
jne 0x4beea1
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004400f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
mov ebp, 1
mov edi, 1
jmp 0x4becf0
mov dword [esp + 0x24], edi
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esi + 5]
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
call fcn.004400f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
jmp 0x4becf0
mov eax, ebp
mov ebp, dword [esp + 0x78]
jmp 0x4becdb
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
jmp 0x4becdb
test ecx, ecx
jne 0x4bef37
lea eax, [0x4ff980]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004400f0
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov edx, 1
mov eax, 1
jmp 0x4bec4d
mov dword [esp + 0x28], eax
lea edx, [0x4ff980]
mov dword [esp], edx
mov dword [esp + 4], eax
lea ebx, [ecx + 5]
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], ebx
call fcn.004400f0
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jmp 0x4bec4d
mov edi, eax
jmp 0x4beb99
xor eax, eax
jmp 0x4beb87
mov ecx, edi
mov edx, ebp
call fcn.00455fe0
mov eax, ecx
mov ecx, edx
call fcn.00455fa0
call fcn.00455fe0
mov ecx, eax
call fcn.00455fe0
mov eax, esi
mov ecx, 0x100
call fcn.00455fb0
call fcn.00455fa0
nop
call fcn.004546e0
jmp fcn.004beb30