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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bfcc0
sub esp, 0x64
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x70]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
test eax, eax
je 0x4bf9f3
mov edx, 1
jmp 0x4bfa25
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
xor eax, 1
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x24]
test dl, dl
je 0x4bfa94
mov edx, dword [0x1e84d4c]
cmp dword [0x1e84d48], ecx
je 0x4bfa3b
xor ecx, ecx
jmp 0x4bfa5a
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00403940
movzx eax, byte [esp + 0xc]
mov ebp, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x24]
test cl, cl
je 0x4bfa85
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4bfa7d
xor eax, eax
xor ebp, ebp
jmp 0x4bfa85
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebp
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
call fcn.004bfef0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x28], ebp
test edx, edx
je 0x4bfb88
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x70]
mov dword [esp + 8], edi
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test ebx, ebx
je 0x4bfb80
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebp
mov edx, dword [0x1e84d4c]
cmp dword [0x1e84d48], eax
je 0x4bfb29
xor eax, eax
jmp 0x4bfb46
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403940
movzx eax, byte [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
test al, al
je 0x4bfb71
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4bfb69
xor ebx, ebx
xor ebp, ebp
jmp 0x4bfb71
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x64
ret
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
xor eax, eax
jmp 0x4bfb9b
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jge 0x4bfca9
mov dword [esp + 0x30], eax
lea ecx, [ebx + eax*8]
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], ecx
mov ebp, dword [edx + 0x18]
mov dword [esp], ecx
call ebp
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c0b20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.004bf980
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x4bfb8c
mov eax, dword [0x1e84d4c]
cmp dword [0x1e84d48], ecx
jne 0x4bfc9a
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00403940
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4bfca9
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x64
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
call fcn.004649b0
jmp fcn.004bf980