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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x506844
add esp, 0xffffff80
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
cmp ecx, eax
jle 0x50651e
jbe 0x50683e
mov edx, dword [esp + 0x84]
movzx ebx, byte [eax + edx]
test bl, 0x20
xchg ebp, ebx
setne bl
xchg ebp, ebx
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
lea esi, [eax + 1]
mov edi, ebx
shr bl, 6
movzx ebx, bl
mov dword [esp + 0x38], ebx
and edi, 0x1f
cmp edi, 0x1f
je 0x5062b3
xor eax, eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
jmp 0x506314
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
call fcn.005057b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jne 0x5064dc
cmp eax, 0x1f
jl 0x50645a
mov edx, dword [esp + 0x84]
mov esi, ecx
mov edi, eax
mov eax, ebx
mov dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x38]
movzx ebp, byte [esp + 0x23]
mov dword [esp + 0x34], edi
cmp ecx, esi
jle 0x5063dc
jbe 0x506837
movzx ebp, byte [esi + edx]
inc esi
xchg ebp, eax
test al, 0x80
xchg ebp, eax
je 0x5063d4
and ebp, 0x7f
test ebp, ebp
je 0x506356
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
jmp 0x5065ed
mov dword [esp + 0x30], esi
lea eax, [0x53bede]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x21
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
and ebp, 0x7f
jmp 0x50658e
mov dword [esp + 0x30], esi
lea eax, [0x5395b8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x17
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
lea eax, [0x536c25]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0xf
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 0
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
movzx eax, byte [esp + 0x23]
mov byte [esp + 0xa0], al
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ebp
sub esp, 0xffffff80
ret
lea eax, [0x5260e0]
mov dword [esp], eax
call fcn.0040b120
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x29
lea ecx, [0x53d79a]
mov dword [eax], ecx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566c30]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebp
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
lea ebx, [edi + 1]
mov edi, dword [esp + 0x84]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x24]
cmp edi, ebp
jge 0x50679f
cmp ecx, esi
jle 0x506725
jbe 0x506830
movzx ebx, byte [edx + esi]
inc esi
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x30]
cmp edx, 0x800000
jge 0x5066ab
shl edx, 8
or edx, ebx
test edx, edx
jne 0x5065cc
mov dword [esp + 0x28], edx
lea eax, [0x53c7bd]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x23
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x9c], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d0c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
lea eax, [0x536fc9]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x9c], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d0c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
lea eax, [0x5395b8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x17
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x9c], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80
jl 0x5067b6
mov edi, dword [esp + 0x34]
mov ebp, ecx
jmp 0x50658e
lea eax, [0x53783a]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x12
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.00408b90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x9c], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
lea ecx, [0x566d0c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
sub esp, 0xffffff80
ret
mov eax, esi
call fcn.0045eef0
mov eax, esi
call fcn.0045eef0
call fcn.0045eef0
nop
call fcn.0045daa0
jmp fcn.00506240