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

Disassembly:
push 0xffffffffffffffff
push 0x42eb9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
push 0x7f02
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0xd4], 0x4312d8
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov al, byte [esp + 0x1f]
push edi
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0xe0], edi
mov byte [esp + 0x64], al
call fcn.00407980
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
lea ecx, [ebp + 0x2c]
push eax
push edx
mov byte [esp + 0xe0], 1
add ebx, esi
mov dword [esp + 0x1c], edi
call fcn.004074e0
mov eax, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
lea ecx, [ebp + 0x3c]
push eax
push edx
call fcn.00407580
cmp esi, ebx
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
jae 0x40524c
cmp byte [esi], 0x1a
je 0x40524c
lea ecx, [esp + 0x1f]
lea edx, [esp + 0x13]
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.00406160
mov al, byte [esi]
mov byte [esp + 0xd8], 2
test al, al
mov dword [esp + 0x6c], edi
mov word [esp + 0x70], 0xffff
je 0x405127
cmp al, 0xc
je 0x4050ed
cmp esi, ebx
mov edi, esi
je 0x4050af
cmp byte [edi], 0xd
je 0x4050af
inc edi
cmp edi, ebx
jne 0x4050a5
mov ecx, dword [ebp + 0x58]
mov eax, edi
sub eax, esi
mov dword [esp + 0x6c], esi
mov word [esp + 0x70], ax
movsx eax, ax
cmp ecx, eax
jle 0x4050c8
mov eax, ecx
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x58], eax
lea edx, [esp + 0x6c]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.00407ad0
mov eax, dword [esp + 0x14]
lea esi, [edi + 2]
inc eax
mov dword [esp + 0x14], eax
jmp 0x40522e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x98]
mov dword [esp + 0x98], eax
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.004078c0
cmp byte [esi + 1], 0xd
jne 0x405121
add esi, 3
jmp 0x405230
inc esi
jmp 0x405230
lea ebp, [esi + 2]
mov edi, ebp
cmp edi, ebx
je 0x40513a
cmp byte [edi], 0xd
je 0x40513a
inc edi
cmp edi, ebx
jne 0x405130
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x50], cl
lea ecx, [esp + 0x50]
call fcn.00402f10
push edi
push ebp
lea ecx, [esp + 0x54]
call fcn.00402c50
lea edx, [esp + 0x12]
lea ecx, [esp + 0xac]
push edx
mov byte [esp + 0xdc], 3
call fcn.00406ed0
inc esi
push eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 4
call fcn.00407350
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 5
call fcn.00407250
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 4
call fcn.00402f10
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0xdc], 3
call fcn.00402f10
mov edx, dword [0x431288]
lea eax, [esp + 0x4c]
push edx
push 0
lea ecx, [esi + 0x10]
push eax
call fcn.00402a50
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xdc], 2
call fcn.00402f10
mov al, byte [edi + 2]
lea esi, [edi + 2]
test al, al
je 0x405127
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x98]
mov dword [esp + 0x98], ecx
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004078c0
mov ebp, dword [esp + 0x48]
xor edi, edi
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd8], 1
call fcn.00406200
cmp esi, ebx
jb 0x40505f
mov dl, byte [esp + 0x12]
mov dword [esp + 0x3c], edi
mov byte [esp + 0x38], dl
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
lea eax, [esp + 0x12]
lea ecx, [esp + 0x13]
push eax
push edi
push ecx
lea ecx, [esp + 0xc8]
mov byte [esp + 0xe4], 6
call fcn.00407aa0
mov dl, byte [esp + 0x12]
mov dword [esp + 0x84], edi
mov byte [esp + 0x80], dl
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov al, byte [esi]
mov byte [esp + 0xd8], 8
cmp al, 0x1a
jne 0x405464
inc esi
cmp esi, ebx
jae 0x405329
cmp esi, ebx
mov edi, esi
je 0x4052c6
cmp byte [edi], 0xd
je 0x4052c6
inc edi
cmp edi, ebx
jne 0x4052bc
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.00402f10
push edi
push esi
lea ecx, [esp + 0x54]
call fcn.00402c50
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], 9
call fcn.00407030
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xdc], 8
call fcn.00402f10
mov ecx, dword [ebp + 0x58]
mov eax, edi
sub eax, esi
cmp ecx, eax
jle 0x40531f
mov eax, ecx
lea esi, [edi + 2]
mov dword [ebp + 0x58], eax
cmp esi, ebx
jb 0x4052b6
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x405474
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
sar edx, 4
cmp esi, edx
jae 0x40546e
lea ebp, [ebx + ecx]
mov ecx, ebp
call fcn.00402e90
mov esi, dword [ebp + 4]
mov ecx, ebp
call fcn.00402e90
mov eax, dword [ebp + 4]
test eax, eax
je 0x40544f
add eax, dword [ebp + 8]
cmp esi, eax
jae 0x40544f
movsx eax, byte [esi]
dec eax
je 0x40541e
dec eax
je 0x4053ce
dec eax
jne 0x405449
mov dl, byte [esi + 1]
xor eax, eax
movsx edi, byte [esi + 2]
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x74], dl
call fcn.004079b0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
add esi, 2
mov dword [eax + 0x14], edi
inc esi
jmp 0x40535f
mov ecx, ebp
call fcn.00402e90
mov eax, dword [ebp + 4]
test eax, eax
je 0x4053df
add eax, dword [ebp + 8]
sub eax, esi
mov dl, byte [esi + 1]
mov edi, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xac]
push eax
push ecx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x54], dl
call fcn.004079b0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
inc esi
mov dword [eax + 0x14], edi
inc esi
jmp 0x40535f
mov al, byte [esi + 1]
mov ecx, dword [esp + 0x88]
movsx edx, al
lea eax, [esp + 0x78]
mov dword [esp + 0x78], esi
push eax
push ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edx
call fcn.00407ad0
inc esi
inc esi
jmp 0x40535f
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x48]
inc ecx
add ebx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x40532f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jmp 0x405470
xor edi, edi
cmp ecx, edi
jne 0x405478
xor eax, eax
jmp 0x40547d
sub eax, ecx
sar eax, 4
mov esi, dword [esp + 0xe4]
imul eax, dword [esi + 0x24]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x40]
test ecx, ecx
jne 0x405496
xor eax, eax
jmp 0x40549e
mov eax, dword [ebp + 0x44]
sub eax, ecx
sar eax, 3
imul eax, dword [esi + 0x20]
mov dl, byte [esp + 0x12]
mov ebx, dword [ebp + 0x58]
xor edi, edi
lea ecx, [esp + 0x4c]
push edi
mov dword [ebp + 0x50], eax
mov byte [esp + 0x50], dl
call fcn.00402f10
push 0x20
push ebx
lea ecx, [esp + 0x54]
call fcn.00406ef0
mov ebx, dword [esp + 0xe0]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0xe0], 0xa
call fcn.0040b6f0
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x50]
mov dword [ebp + 0x54], edx
mov byte [esp + 0xdc], 8
call fcn.00402f10
mov esi, dword [esi + 0x20]
lea eax, [esp + 0x90]
push eax
mov ecx, ebx
call fcn.0040b6c0
mov eax, dword [eax + 4]
mov ebx, dword [ebp + 0x4c]
sub eax, ebx
mov ecx, dword [esp + 0x60]
cdq
idiv esi
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x58]
inc eax
push eax
call fcn.00421d0c
mov cl, byte [esp + 0x16]
add esp, 4
mov esi, eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0xd8], 0xb
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
mov ebx, edi
mov eax, dword [ebp + 0x40]
cmp eax, edi
je 0x4058e7
mov edx, dword [ebp + 0x44]
sub edx, eax
sar edx, 3
cmp ebx, edx
jae 0x4058e7
mov eax, dword [ebp + 0x30]
add ebp, 0x2c
cmp eax, edi
jne 0x405590
xor edx, edx
jmp 0x4055a6
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x78], edx
xor ebp, ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x405609
mov edx, dword [esp + 0x88]
sub edx, eax
sar edx, 3
cmp ebp, edx
jae 0x405609
mov ebx, dword [eax + ebp*8]
mov edi, dword [eax + ebp*8 + 4]
mov eax, dword [esp + 0x78]
push eax
push edi
push 0x4382ac
push esi
call fcn.00422644
lea ecx, [edi + esi]
add esp, 0x10
cmp esi, ecx
mov eax, esi
je 0x4055fe
mov edi, ebx
sub edi, esi
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
cmp eax, ecx
jne 0x4055f4
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
inc ebp
jmp 0x4055b1
cmp ecx, dword [esp + 0x60]
je 0x405757
cmp ebx, dword [ecx + 8]
jne 0x405741
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 0x10]
cmp eax, edx
je 0x405731
xor ebx, ebx
mov cl, byte [eax + 0xc]
lea edi, [eax + 0x10]
mov byte [esp + 0x98], cl
push 0
mov dl, byte [edi]
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa0], dl
call fcn.00402f10
mov eax, dword [0x431288]
lea ecx, [esp + 0x9c]
push eax
push 0
push edi
call fcn.00402a50
mov cl, byte [esp + 0x98]
xor eax, eax
mov dword [esp + 0x54], eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0xac]
mov byte [esp + 0x4c], cl
push edx
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe0], 0xc
mov dword [esp + 0x58], ebx
call fcn.004086e0
lea ecx, [esp + 0xb0]
lea edx, [esp + 0xac]
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.00408db0
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x90]
test ecx, ecx
jne 0x4056d4
mov ecx, 0x43127c
mov eax, dword [edi + 0x14]
push ecx
push eax
push eax
push str.__.s
push esi
call fcn.00422644
mov eax, dword [edi + 0x14]
mov ebp, dword [edi + 0x10]
add eax, esi
add esp, 0x14
cmp esi, eax
mov ecx, esi
je 0x405701
mov dl, byte [ecx]
mov byte [ebp], dl
inc ebp
inc ecx
cmp ecx, eax
jne 0x4056f6
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0xdc], 0xb
call fcn.00402f10
lea ecx, [esp + 0x6c]
call fcn.00407490
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
cmp eax, dword [ecx + 0x10]
jne 0x405632
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov ecx, eax
cmp ecx, dword [esp + 0x60]
je 0x405757
mov edi, dword [esp + 0x68]
mov eax, dword [ecx + 8]
lea ecx, [ebx + edi]
cmp eax, ecx
jg 0x40575b
jmp 0x405794
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
add edx, 0x3c
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40576d
xor eax, eax
jmp 0x405775
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 3
sub eax, ebx
cmp edi, eax
jae 0x405781
mov dword [esp + 0x34], edi
jmp 0x40579a
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x40578c
xor eax, eax
jmp 0x405794
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 3
sub eax, ebx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
test edx, edx
mov dword [esp + 0x30], ebx
jne 0x4057ae
xor eax, eax
jmp 0x4057b5
mov eax, edi
sub eax, edx
sar eax, 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4057c1
xor ecx, ecx
jmp 0x4057ce
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
sub ecx, ebp
sar ecx, 4
cmp eax, ecx
ja 0x40580b
mov eax, dword [esp + 0x24]
push eax
push edi
push edx
call fcn.00409640
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004071c0
lea ecx, [esp + 0x38]
call fcn.00406140
mov ecx, dword [esp + 0x24]
shl eax, 4
add eax, ecx
mov dword [esp + 0x28], eax
jmp 0x4058bb
lea ecx, [esp + 0x20]
call fcn.00407010
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00406140
cmp eax, edi
ja 0x405860
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.00406140
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x3c]
push edx
shl edi, 4
add edi, ebp
push edi
push eax
call fcn.00409640
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
add esp, 0xc
push ecx
push edx
push edi
lea ecx, [esp + 0x2c]
call fcn.00407210
jmp 0x4057f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004071c0
mov edx, dword [esp + 0x24]
push edx
call fcn.0041615c
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00406140
test eax, eax
jge 0x40588f
xor eax, eax
shl eax, 4
push eax
call fcn.00421d0c
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407210
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x20]
push edx
push 1
mov edx, dword [eax + 0x34]
lea ecx, [eax + 0x2c]
push edx
call fcn.004080c0
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x48]
add ebx, eax
xor edi, edi
mov dword [esp + 0x18], ebx
jmp 0x405567
push esi
call fcn.0041615c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add esp, 4
mov byte [esp + 0xd8], 8
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004071c0
mov edx, dword [esp + 0x24]
push edx
call fcn.0041615c
add esp, 4
mov ecx, ebp
call fcn.00405dc0
mov eax, dword [esp + 0x84]
push eax
call fcn.0041615c
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov byte [esp + 0xd8], 6
call fcn.00406d40
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, eax
mov byte [esp + 0xd8], 1
mov ebx, eax
je 0x405981
push edi
mov ecx, esi
call fcn.00406e70
add esi, 0x10
cmp esi, ebx
jne 0x40596e
mov esi, dword [esp + 0x3c]
push esi
call fcn.0041615c
mov eax, dword [esp + 0x64]
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0xe0], 0
push ecx
lea ecx, [esp + 0x68]
call fcn.00407920
mov edx, dword [esp + 0x60]
push edx
call fcn.0041615c
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 8