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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x504a2e
sub esp, 0x7c
nop
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x5048bc
mov eax, dword [esp + 0x8c]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
test ebx, ebx
jne 0x5048aa
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x80]
mov ebx, dword [edx]
lea edi, [eax + ebp]
mov dword [esp + 0x24], edi
nop
nop
mov esi, dword [ebx + 8]
mov ebx, dword [ebx + 4]
nop
lea ecx, [esi - 1]
test ecx, ecx
jl 0x5048a3
mov ebx, dword [ebx + esi*4 - 4]
nop
nop
cmp ebx, 0x10000
jb 0x50489c
shr ebx, 0x10
mov esi, 0x10
cmp ebx, 0x100
jb 0x5044e6
shr ebx, 8
add esi, 8
cmp ebx, 0x100
jae 0x504a06
shl ecx, 5
lea edi, [0x869c00]
movzx ebx, byte [ebx + edi]
add ebx, esi
add ecx, ebx
lea ebx, [eax + ebp + 0xb]
lea esi, [ecx + 7]
sar esi, 0x1f
shr esi, 0x1d
lea ecx, [esi + ecx + 7]
sar ecx, 3
cmp ecx, ebx
jl 0x50487e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], ebp
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
nop
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
call fcn.004e3b30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov byte [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.00506400
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
nop
mov ecx, dword [eax + 8]
lea edx, [0x640f20]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x44], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e3a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
ja 0x5049ff
nop
sub ecx, eax
mov dword [esp + 0x38], ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x40]
cmp edx, ecx
jle 0x504875
mov ebx, ecx
mov dword [esp + 0x34], ecx
lea eax, [0x640f20]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov ebx, ecx
sub ecx, edx
cmp ecx, ebx
ja 0x5049f8
mov edx, ebx
sub ebx, ecx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ecx, ebx
add ecx, eax
mov ebx, dword [esp + 0x38]
cmp ebp, ebx
jle 0x50486e
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x54]
cmp ecx, ebp
je 0x5046da
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0044d890
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x5049f1
nop
mov ecx, dword [esp + 0x58]
movzx edx, byte [ecx]
cmp eax, 1
jbe 0x5049ea
movzx ebx, byte [ecx + 1]
dec edx
shr edx, 0x1f
xor ebx, 1
movzx ebx, bl
dec ebx
shr ebx, 0x1f
and edx, ebx
nop
mov ebx, dword [esp + 0x3c]
mov ebp, eax
sub eax, ebx
test ebp, ebp
jl 0x5049e3
cmp eax, ebp
ja 0x5049e3
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], eax
sub ebp, eax
mov ebx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebp, ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x14], ebx
call fcn.004cfc20
mov eax, dword [esp + 0x30]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov ebx, ecx
sub ecx, edx
mov edx, dword [esp + 0x48]
test edx, edx
jl 0x5049dc
cmp ecx, edx
ja 0x5049dc
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ecx
sub ebx, ecx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, ecx
mov esi, dword [esp + 0x58]
add ebx, esi
mov dword [esp], ebx
sub edx, ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
call fcn.004cfc20
mov eax, dword [esp + 0x30]
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
lea edx, [ecx - 1]
mov ebx, dword [esp + 0x40]
cmp edx, ebx
jae 0x5049d5
mov ebp, dword [esp + 0x58]
movzx ecx, byte [ecx + ebp - 1]
dec ecx
shr ecx, 0x1f
and ecx, eax
nop
mov eax, 2
jmp 0x504824
lea esi, [eax + 1]
movzx edi, byte [ebp + eax]
xor edi, 0xffffffff
xchg edi, eax
movzx eax, al
xchg edi, eax
dec edi
shr edi, 0x1f
and ecx, edi
nop
mov eax, esi
cmp eax, edx
jge 0x504831
cmp eax, ebx
jb 0x50480b
jmp 0x5049ce
cmp ecx, 1
je 0x504854
mov eax, dword [0x894884]
mov ecx, dword [0x894880]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x7c
ret
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x7c
ret
mov ebx, ebp
jmp 0x5046be
mov ebx, ecx
mov ecx, edx
jmp 0x504671
mov eax, dword [0x894884]
mov ecx, dword [0x894880]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x7c
ret
xor esi, esi
jmp 0x5044d8
xor ecx, ecx
jmp 0x504503
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], edx
add esp, 0x7c
ret
nop
cmp eax, 0x14
jae 0x504a14
mov ecx, dword [0x88fa00]
lea edx, [0x88fa00]
cmp dword [edx + 4], eax
jbe 0x504a0d
movzx ecx, byte [ecx + eax]
mov edx, dword [esp + 0x8c]
cmp ecx, edx
je 0x504938
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x28
mov eax, dword [0x8a6100]
test eax, eax
jne 0x50492b
lea eax, [0x691581]
mov dword [edi], eax
xor eax, eax
xor ecx, ecx
mov edx, edi
lea ebx, [0x6e5880]
xor ebp, ebp
xor esi, esi
jmp 0x50448a
lea eax, [0x691581]
call fcn.0044d090
jmp 0x504916
mov dword [esp + 0x48], ecx
lea ecx, [0x641be0]
mov dword [esp], ecx
mov ecx, dword [0x894290]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040cb00
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
test cl, cl
je 0x504980
mov ecx, eax
mov ebp, ebx
mov esi, edx
mov eax, dword [esp + 0x48]
xor edx, edx
xor ebx, ebx
jmp 0x50448a
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x25
mov eax, dword [0x8a6100]
test eax, eax
jne 0x5049c1
lea eax, [0x690718]
mov dword [edi], eax
xor eax, eax
xor ecx, ecx
mov edx, edi
lea ebx, [0x6e5880]
xor ebp, ebp
xor esi, esi
jmp 0x50448a
lea eax, [0x690718]
call fcn.0044d090
jmp 0x5049ac
call fcn.00427150
ud2
call fcn.00427150
ud2
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.00427150
ud2
call fcn.00427150
ud2
call fcn.00427250
ud2
call fcn.00427250
ud2
call fcn.00427150
ud2
call fcn.00427150
ud2
lea eax, [0x640d20]
mov dword [esp], eax
lea eax, [0x6e0f90]
mov dword [esp + 4], eax
call fcn.00427f10
ud2
call fcn.0044b940
jmp fcn.00504450