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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b550b
sub esp, 0x68
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], edx
call fcn.004b3af0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x70]
movzx edx, byte [ecx]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], esi
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
mov dword [esp + 0x5c], esi
movzx esi, byte [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], ecx
movzx ecx, byte [eax]
mov byte [esp + 0x1b], cl
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov byte [eax], dl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov edx, dword [0x817f20]
test edx, edx
je 0x4b5215
mov edx, edi
call fcn.00466d20
mov dword [edi], edx
mov ebx, dword [eax + 4]
mov dword [edi + 4], ebx
mov edi, edx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x70]
xchg esi, ebx
mov byte [eax], bl
xchg esi, ebx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov edx, dword [0x817f20]
test edx, edx
jne 0x4b5240
mov edx, dword [esp + 0x5c]
jmp 0x4b5251
call fcn.00466d20
mov edx, dword [esp + 0x5c]
mov dword [edi], edx
mov ebx, dword [eax + 4]
mov dword [edi + 4], ebx
mov dword [eax + 4], edx
movzx eax, byte [esp + 0x1b]
mov edx, dword [esp + 0x64]
mov byte [edx], al
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [0x817f20]
test eax, eax
jne 0x4b5279
mov eax, dword [esp + 0x58]
jmp 0x4b528a
call fcn.00466d20
mov eax, dword [esp + 0x58]
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], eax
movzx eax, byte [esp + 0x8c]
test al, al
je 0x4b5507
nop
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
je 0x4b53b5
mov edx, dword [eax + 0xc]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
cmp edx, ebx
jl 0x4b52c8
mov esi, dword [eax + 4]
mov edi, ebx
jmp 0x4b5350
mov dword [esp + 0x38], ebx
mov dword [esp + 0x54], ebp
cmp ebx, 1
jne 0x4b5316
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
mov ebx, 1
mov edx, 1
jmp 0x4b5350
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 8], ecx
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
mov ebx, edi
mov edx, dword [esp + 0x20]
cmp ebx, edi
jg 0x4b5356
mov edi, ebx
cmp esi, ebp
je 0x4b5390
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], esi
mov dword [esp], esi
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.00467650
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov edx, dword [0x817f20]
test edx, edx
je 0x4b53ad
call fcn.00466d20
mov dword [edi], esi
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov dword [eax + 4], esi
movzx edx, byte [ecx]
mov byte [eax], dl
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
call fcn.004b39a0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 8], ecx
call fcn.004b3750
nop
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
je 0x4b5507
mov edx, dword [ecx + 0xc]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 4]
cmp edx, ebx
jl 0x4b541a
mov esi, dword [ecx + 4]
mov edi, ebx
jmp 0x4b54a2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], ebp
cmp ebx, 1
jne 0x4b5468
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
mov ebx, 1
mov edx, 1
jmp 0x4b54a2
lea eax, [0x5b16c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
call fcn.0044d2d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
mov ebx, edi
mov edx, dword [esp + 0x1c]
cmp ebx, edi
jg 0x4b54a8
mov edi, ebx
cmp esi, ebp
je 0x4b54e2
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x48], esi
mov dword [esp], esi
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.00467650
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov edx, dword [0x817f20]
test edx, edx
je 0x4b54ff
call fcn.00466d20
mov dword [edi], esi
mov edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov dword [ecx + 4], esi
movzx eax, byte [eax]
mov byte [ecx], al
add esp, 0x68
ret
call fcn.00465910
jmp fcn.004b5160