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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b7474
sub esp, 0x80
mov eax, dword [esp + 0x84]
lea ecx, [eax + 0x3c]
test byte [ecx], al
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x300
call fcn.00453d40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4b7451
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x14]
movzx ebx, byte [eax + 0x3d]
mov dword [esp + 0x3c], ebx
movzx ebp, byte [eax + 0x3f]
mov dword [esp + 0x38], ebp
movzx esi, byte [eax + 0x3e]
mov dword [esp + 0x34], esi
movzx edi, byte [eax + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 0x68], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0x2fc
mov dword [esp], edx
call ecx
lea eax, [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0x2fc
call fcn.0043b030
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
shl edx, 8
mov ebx, dword [esp + 0x38]
or ebx, edx
mov edx, dword [esp + 0x3c]
shl edx, 0x10
or edx, ebx
mov ebx, dword [esp + 0x30]
shl ebx, 0x18
or ebx, edx
mov dword [esp + 0x24], ebx
cmp ecx, 4
jge 0x4b7219
jne 0x4b718e
mov edx, dword [eax]
cmp edx, 0x54414449
jne 0x4b718b
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
lea edx, [ecx - 1]
cmp edx, 3
jbe 0x4b6f85
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
cmp ecx, 1
jne 0x4b6f95
mov edx, dword [eax + 0x30]
add edx, 0xfffffff9
cmp edx, 3
jbe 0x4b6f50
cmp ecx, 4
jne 0x4b715b
cmp ebx, 0x7fffffff
ja 0x4b70b0
lea eax, [0x4ffc20]
mov dword [esp], eax
call fcn.0040d710
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x24]
jmp 0x4b7001
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x24]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x1000
mov dword [esp], ebx
call ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x6c]
test ecx, ecx
jbe 0x4b7084
cmp ecx, 0x1000
jle 0x4b7080
mov edx, 0x1000
cmp edx, 0x1000
ja 0x4b746d
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x84]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x1000
call fcn.00453d40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4b706b
cmp edx, 0x1000
jbe 0x4b6fc6
jmp 0x4b7466
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
mov edx, ecx
jmp 0x4b7012
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004b7480
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x503560]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040ae40
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x528387]
mov dword [esp], eax
mov dword [esp + 4], 0x14
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00498f60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [esp + 0x70]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
mov dword [eax + 0x34], 4
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004b6d00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
cmp ecx, 4
jne 0x4b720d
mov eax, dword [eax]
cmp eax, 0x444e4549
jne 0x4b720d
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
cmp ecx, 4
je 0x4b71dd
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
mov dword [eax + 0x34], 5
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004b6db0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
mov eax, dword [esp + 0x84]
jmp 0x4b6f9e
je 0x4b73fb
jne 0x4b72a5
mov edx, dword [eax]
cmp edx, 0x52444849
jne 0x4b72a2
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x4b7272
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
mov dword [eax + 0x34], 1
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004b1800
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
cmp ecx, 4
jne 0x4b732c
mov edx, dword [eax]
cmp edx, 0x45544c50
jne 0x4b7329
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x34]
cmp ecx, 1
je 0x4b72f9
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x80
ret
mov dword [eax + 0x34], 2
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004b1c90
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
cmp ecx, 4
jne 0x4b720d
mov eax, dword [eax]
cmp eax, 0x534e5274
jne 0x4b720d
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x30]
add ecx, 0xfffffff9
cmp ecx, 3
ja 0x4b73be
mov ecx, dword [eax + 0x34]
cmp ecx, 2
jne 0x4b7389
mov dword [eax + 0x34], 3
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004b1ff0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
mov ecx, dword [eax + 0x34]
cmp ecx, 1
je 0x4b7359
lea eax, [0x541200]
mov dword [esp], eax
lea eax, [0x5ca2d8]
mov dword [esp + 4], eax
call fcn.0040b230
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x5245e5]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.0044b8d0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4b743d
mov ecx, dword [esp + 0x28]
cmp ecx, 4
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x24]
jmp 0x4b6f2a
mov ecx, dword [esp + 0x28]
cmp ecx, 4
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x24]
jmp 0x4b721f
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x80
ret
call fcn.004252e0
ud2
call fcn.004252e0
ud2
call fcn.00449fd0
jmp fcn.004b6e10