Function at 0x417570
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x73ba8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1ec]
mov ebx, ecx
xor ebp, ebp
mov al, byte [esi]
push edi
push ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], ebx
mov byte [esp + 0x60], al
call fcn.00404760
mov ecx, dword [0x76560c]
push ecx
push ebp
push esi
lea ecx, [esp + 0x68]
call fcn.00404560
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1e8], ebp
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404760
mov eax, dword [esp + 0x64]
mov byte [esp + 0x1e8], 1
cmp eax, ebp
je 0x41760a
cmp dword [esp + 0x60], ebp
je 0x4175fe
lea ecx, [esp + 0x5c]
call fcn.0040ac20
mov eax, dword [esp + 0x60]
jmp 0x417603
mov eax, 0x765608
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x80563c]
mov ecx, dword [0x805640]
cmp eax, ebp
jne 0x41761e
mov eax, 0x765608
push ecx
push ebp
push eax
lea ecx, [esp + 0x68]
call fcn.00427160
cmp eax, ebp
jl 0x417678
mov ecx, dword [0x76560c]
mov eax, dword [0x805640]
push ecx
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x68]
call fcn.0040aa70
mov ecx, dword [0x76560c]
mov byte [esp + 0x1e8], 2
push ecx
push ebp
push eax
lea ecx, [esp + 0x58]
call fcn.00404560
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 1
call fcn.00404760
jmp 0x41768e
mov edx, dword [0x76560c]
lea eax, [esp + 0x5c]
push edx
push ebp
push eax
lea ecx, [esp + 0x58]
call fcn.00404560
cmp dword [esp + 0x54], ebp
jbe 0x4177ea
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x70], cl
lea ecx, [esp + 0x70]
call fcn.00404760
push 1
lea edx, [esp + 0x17]
push ebp
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x1f4], 3
mov byte [esp + 0x1f], 0x3a
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417748
or ecx, eax
mov edi, 0x7a3f88
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x7a3f88
lea ecx, [esp + 0x58]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417748
or ecx, eax
mov edi, 0x7a3f84
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x7a3f84
lea ecx, [esp + 0x58]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417748
cmp dword [0x805640], ebp
jbe 0x417730
mov eax, dword [0x76560c]
lea ecx, [esp + 0x6c]
push eax
push ebp
push 0x805638
call fcn.00404560
mov ecx, dword [0x76560c]
lea edx, [esp + 0x4c]
push ecx
push ebp
push edx
lea ecx, [esp + 0x78]
call fcn.00413a70
jmp 0x41775d
mov eax, dword [0x76560c]
lea ecx, [esp + 0x4c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x78]
call fcn.00404560
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], ebp
cmp eax, ebp
jne 0x41776e
mov eax, 0x765608
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41781a
lea edx, [esp + 0x6c]
push 0x7a3f68
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0040aca0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1e8], 4
test eax, eax
jne 0x4177bb
mov eax, 0x765608
push eax
call fcn.00455190
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1e8], 3
push 1
call fcn.00404760
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1ec], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1ec], 0
call fcn.00404760
push 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.00404760
xor al, al
jmp 0x417ddb
push ebp
mov ecx, ebx
call fcn.00444ad0
mov cl, byte [0x7c4d88]
xor eax, eax
mov byte [esp + 0x84], cl
mov ecx, 0x3f
lea edi, [esp + 0x85]
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x20]
push 0
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x88]
push 4
push eax
push ebp
mov dword [esp + 0x2c], 0
call esi
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x18c]
push 0x5c
push edx
push ebp
call esi
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x417ac2
lea edx, [esp + 0x20]
push 0
push edx
push eax
lea eax, [esp + 0x90]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], dl
mov byte [esp + ecx + 0x88], 0
lea ecx, [esp + 0x38]
call fcn.00404760
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
call fcn.00401450
test al, al
je 0x417915
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00404970
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esp + 0x3c]
mov edi, dword [0x8056b4]
test eax, eax
mov byte [esp + 0x1e8], 5
je 0x417aab
mov cl, byte [esp + 0x34]
push 0
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call fcn.00404760
mov edx, dword [0x76560c]
lea eax, [esp + 0x34]
push edx
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00404560
mov bl, 6
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], bl
call fcn.004258f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, 0x805658
mov dword [esp + 0x1c], 0
call fcn.004273a0
mov eax, dword [0x80565c]
mov ecx, dword [esp + 0x7c]
cmp ecx, eax
jne 0x417a6d
push 0x50
call fcn.00726f70
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1e8], 7
je 0x4179c4
mov ecx, eax
call fcn.00449720
jmp 0x4179c6
xor eax, eax
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x14], eax
mov dword [eax + 0x28], edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x417a02
test ecx, ecx
je 0x4179f5
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esp + 0x14], 0
jmp 0x417a98
push ecx
mov ecx, 0x805658
call fcn.004271f0
cmp eax, 0xffffffff
jne 0x417a98
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov edi, eax
add eax, 0x18
push eax
push edx
mov ecx, 0x805658
call fcn.004273a0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push eax
mov ecx, 0x805668
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x417a5e
inc dword [ecx + 0x10]
test edi, edi
je 0x417a98
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x417a98
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x805668
mov dword [esp + 0x1c], eax
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x417a98
inc dword [ecx + 0x10]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 5
call fcn.00404760
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ec], 3
call fcn.00404760
mov ebx, dword [esp + 0x44]
cmp dword [ebx + 0xe4], 1
jne 0x417cf6
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x417cf6
lea edx, [esp + 0x20]
push 0
push edx
push eax
lea eax, [esp + 0x90]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], dl
mov byte [esp + ecx + 0x88], 0
lea ecx, [esp + 0x38]
call fcn.00404760
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
call fcn.00401450
test al, al
je 0x417b66
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00404970
mov eax, dword [esp + 0x3c]
mov esi, dword [0x8056b4]
xor edi, edi
mov byte [esp + 0x1e8], 8
cmp eax, edi
je 0x417cdd
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
call fcn.004257d0
mov bl, 9
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], bl
call fcn.004258f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, 0x805658
mov dword [esp + 0x1c], edi
call fcn.004273a0
mov eax, dword [0x80565c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x417c9f
push 0x50
call fcn.00726f70
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0x1e8], 0xa
je 0x417bf6
mov ecx, eax
call fcn.00449720
jmp 0x417bf8
xor eax, eax
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x14], eax
mov dword [eax + 0x28], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test al, al
jne 0x417c30
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x417c27
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], edi
jmp 0x417cca
mov eax, dword [esp + 0x14]
mov ecx, 0x805658
push eax
call fcn.004271f0
cmp eax, 0xffffffff
jne 0x417cca
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov esi, eax
add eax, 0x18
push eax
push ecx
mov ecx, 0x805658
call fcn.004273a0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x805668
mov eax, dword [edx + 0x1c]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x1c], eax
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
je 0x417c90
inc dword [ecx + 0x10]
cmp esi, edi
je 0x417cca
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x417cca
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, 0x805668
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x417cca
inc dword [ecx + 0x10]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 8
call fcn.00404760
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ec], 3
call fcn.00404760
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push ebp
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x417d96
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x8c]
push eax
push edx
push ebp
call esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x24], cl
push 0
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x88], 0
call fcn.00404760
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004047b0
push 0
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, 0x805560
mov byte [esp + 0x1f4], 0xb
call fcn.00426660
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 3
call fcn.00404760
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1ec], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1ec], 0
call fcn.00404760
push 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.00404760
mov al, 1
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1dc
ret 4