Function at 0x401ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push edi
mov edi, ecx
push str.NULL_CURSOR
mov dword [ebp - 0x40], edi
push dword [edi]
call esi
push 0x7f00
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [edi + 0x10], eax
mov eax, dword [edi]
push str.IDI_ICON1
push eax
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0xb
mov dword [ebp - 0x34], 0x4027b0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], eax
call esi
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x14]
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov esi, dword [edi + 0x1c]
lea eax, [edi + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x401c5e
push 1
push eax
call fcn.00404b59
add esp, 8
mov dword [edi + 0x2c], 0
test esi, esi
je 0x401eeb
cmp byte [esi], 0
je 0x401eeb
xor eax, eax
nop dword [eax + eax]
cmp byte [eax + esi + 1], 0
lea eax, [eax + 1]
jne 0x401c80
lea edi, [eax + 1]
push edi
call fcn.00404b67
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x40]
mov ecx, esi
mov dword [eax + 0x2c], edx
test edi, edi
je 0x401cb4
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
sub edi, 1
jne 0x401ca6
push 0x41fbd8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push esi
push eax
call fcn.00408404
mov edi, dword [ebp - 8]
add esp, 0xc
test edi, edi
jne 0x401d7b
mov al, byte [esi]
xor ebx, ebx
test al, al
je 0x401d03
mov edx, 1
mov ecx, esi
sub edx, esi
nop dword [eax]
cmp al, 0x5c
je 0x401cf8
cmp al, 0x2f
jne 0x401cfb
lea ebx, [edx + ecx]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401cf0
add esi, ebx
jne 0x401d14
mov eax, dword [ebp - 0x40]
lea edi, [esi + 1]
mov ecx, esi
mov edx, dword [eax + 0x2c]
jmp 0x401d36
xor eax, eax
cmp byte [esi], al
je 0x401d27
nop word [eax + eax]
inc eax
cmp byte [eax + esi], 0
jne 0x401d20
mov edx, dword [ebp - 0x40]
lea edi, [eax + 1]
mov ecx, esi
mov edx, dword [edx + 0x2c]
test edi, edi
je 0x401d46
mov al, byte [ecx]
lea edx, [edx + 1]
mov byte [edx - 1], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x401d36
cmp byte [esi], 0
je 0x401ee8
test ebx, ebx
jle 0x401ee8
push 0x41fbd8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push esi
push eax
call fcn.00408404
mov edi, dword [ebp - 0xc]
add esp, 0xc
test edi, edi
je 0x401ee8
push 2
push 0
push edi
call fcn.00408889
add esp, 0xc
push edi
call fcn.0040831d
add esp, 4
mov esi, eax
mov eax, 0xffff
cmp esi, eax
push 0
push 0
push edi
cmovg esi, eax
call fcn.00408889
add esp, 0xc
lea eax, [esi + 1]
push eax
call fcn.00404b67
add esp, 4
mov ebx, eax
push edi
push esi
push 1
push ebx
call fcn.0040ad3c
push edi
mov esi, eax
call fcn.00408570
add esp, 0x14
test esi, esi
je 0x401edd
mov byte [ebx + esi], 0
mov esi, ebx
mov al, byte [ebx]
test al, al
je 0x401edd
movzx eax, al
add eax, 0xfffffff7
cmp eax, 0x52
ja case.0x401df7.11
movzx eax, byte [eax + 0x401fb8]
jmp dword [eax*4 + 0x401fa8]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401edd
nop word [eax + eax]
cmp al, 0xa
je 0x401ece
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401e10
jmp 0x401edd
inc esi
jmp 0x401ece
mov al, byte [esi + 1]
mov edi, esi
inc esi
test al, al
je 0x401e45
cmp al, 0xa
je 0x401e45
cmp al, 0x3d
je 0x401e4f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401e35
mov al, byte [esi]
cmp al, 0x3d
jne 0x401ed0
lea eax, [esi - 1]
mov cl, byte [eax]
cmp cl, 0x20
je 0x401e5e
cmp cl, 9
jne 0x401e61
dec eax
jmp 0x401e52
mov byte [eax + 1], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x401e65
cmp al, 9
je 0x401e65
mov al, byte [esi + 1]
mov edx, esi
inc esi
test al, al
je 0x401e90
nop dword [eax + eax]
cmp al, 0xa
je 0x401e90
cmp al, 0xd
je 0x401e90
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401e80
lea eax, [esi - 1]
mov cl, byte [eax]
cmp cl, 0x20
je 0x401e9f
cmp cl, 9
jne 0x401ea2
dec eax
jmp 0x401e93
mov byte [eax + 1], 0
inc esi
mov al, byte [edi]
mov ecx, edi
test al, al
je 0x401ec4
nop
cmp al, 0x41
jb 0x401ebc
cmp al, 0x5a
ja 0x401ebc
add al, 0x20
mov byte [ecx], al
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401eb0
mov ecx, dword [ebp - 0x44]
push edx
push edi
call fcn.00401120
mov al, byte [esi]
test al, al
jne 0x401de5
jmp 0x401edd
mov byte [esi], 0
push 1
push ebx
call fcn.00404b59
add esp, 8
mov edi, dword [ebp - 0x40]
mov eax, dword [edi + 0x2c]
push 0
push dword [edi]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x18]
push 0
push 0
push 1
push 1
push dword [edi + 0x50]
push dword [edi + 0x4c]
push 0x90000088
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [edi + 4], eax
test eax, eax
jne 0x401f2f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047d8
mov esp, ebp
pop ebp
ret
mov al, byte [edi + 0x41]
mov ecx, 0x41fbdb
mov byte [edi + 0x56], al
mov eax, dword [edi + 0x30]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, edi
call fcn.00402ac0
push 0
push 0
push 0x400
push dword [edi + 4]
mov byte [edi + 0x55], 1
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [edi + 8]
mov dword [edi + 0xc], 0
test eax, eax
je 0x401f92
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 8], 0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047d8
mov esp, ebp
pop ebp
ret