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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bb18a
sub esp, 0x74
mov eax, 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x1f], 0
nop
mov eax, dword [esp + 0x88]
mov ecx, eax
and eax, 0x1f
mov dword [esp + 0x2c], eax
cmp eax, 0x14
ja 0x4bad8b
lea ebx, [eax - 0x12]
cmp ebx, 1
jbe 0x4badb1
cmp eax, 0x14
je 0x4bad95
jmp 0x4bb146
cmp eax, 0x16
jbe 0x4badb1
cmp eax, 0x17
jne 0x4bada8
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
test ebx, ebx
setne bl
xor ebx, 1
jmp 0x4bade6
cmp eax, 0x1a
jne 0x4bb146
test ecx, 0x200
je 0x4badc2
mov eax, dword [esp + 0x84]
jmp 0x4badee
test ecx, 0x80
je 0x4badd5
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
jmp 0x4badde
mov eax, dword [esp + 0x84]
mov ebx, eax
test ebx, ebx
setne bl
xor ebx, 1
test bl, bl
jne 0x4bafc1
mov ebx, dword [esp + 0x7c]
mov ebp, dword [ebx + 0x54]
inc ebp
mov dword [ebx + 0x54], ebp
cmp ebp, 0x3e8
ja 0x4bae08
xor edx, edx
jmp 0x4baf4c
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0047b8e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
call fcn.0047b1d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea edx, [0x4d9780]
mov dword [esp + 0x5c], edx
lea ebx, [esp + 0x40]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x7c]
mov ebp, dword [ebx + 0x58]
lea esi, [0x4d75c0]
mov dword [esp], esi
mov dword [esp + 4], ebp
lea ebp, [esp + 0x5c]
mov dword [esp + 8], ebp
call fcn.0040bfe0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4bafe5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00408900
mov eax, dword [esp + 8]
lea ecx, [0x4d9780]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x58]
lea ebx, [0x4d75c0]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea edx, [esp + 0x5c]
mov dword [esp + 8], edx
call fcn.0040c360
mov eax, dword [esp + 0xc]
test byte [eax], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x58]
lea edx, [0x4f1da4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
lea ecx, [0x4d9780]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], ecx
mov byte [esp + 0x1f], 1
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
mov edx, 1
mov byte [esp + 0x1e], dl
mov ebp, dword [esp + 0x78]
mov esi, dword [ebp]
mov dword [esp], ebx
mov edi, dword [esp + 0x80]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
movzx eax, byte [esp + 0x8c]
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x8d]
mov byte [esp + 0x11], al
mov edx, ebp
call esi
mov eax, dword [esp + 0x7c]
dec dword [eax + 0x54]
movzx eax, byte [esp + 0x1e]
test al, 1
je 0x4bafbd
and eax, 0xfffffffe
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1fc0
add esp, 0x74
ret
mov eax, dword [esp + 0x7c]
test byte [eax], al
mov dword [esp], eax
lea eax, [0x4e6838]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.004afc30
add esp, 0x74
ret
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
call fcn.0047c890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
test eax, eax
je 0x4bb029
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
lea eax, [0x4ebe57]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7e40
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
lea edx, [0x4dab60]
mov dword [esp], edx
call fcn.0040af50
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x88]
mov dword [edi + 8], eax
mov eax, dword [0x7e83b0]
test eax, eax
jne 0x4bb120
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov ecx, dword [esp + 0x84]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x7e83b0]
test ecx, ecx
jne 0x4bb10c
mov eax, dword [esp + 0x48]
mov dword [edi + 0xc], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x50f8f8]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
lea eax, [0x4dbd60]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00408830
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004319f0
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x48]
mov edx, edi
mov edi, ecx
call fcn.00459fb0
mov edi, edx
jmp 0x4bb0c4
mov eax, dword [esp + 0x80]
call fcn.00459fb0
lea ecx, [edi + 4]
mov eax, dword [esp + 0x84]
mov edx, edi
mov edi, ecx
call fcn.00459fb0
mov edi, edx
jmp 0x4bb0ac
lea eax, [0x4daf80]
mov dword [esp], eax
call fcn.0040af50
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x4e9b0c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
lea ecx, [0x4d8880]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004319f0
nop
call fcn.00430980
add esp, 0x74
ret
call fcn.00458b70
jmp fcn.004bad30