Function at 0x417e00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x73baf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1d8]
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x48]
mov al, byte [edi]
push ebx
mov dword [esp + 0x18], esi
mov byte [esp + 0x4c], al
call fcn.00404760
mov ecx, dword [0x76560c]
push ecx
push ebx
push edi
lea ecx, [esp + 0x54]
call fcn.00404560
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1d0], ebx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], dl
call fcn.00404760
mov eax, dword [esp + 0x50]
mov byte [esp + 0x1d0], 1
cmp eax, ebx
je 0x417e9a
cmp dword [esp + 0x4c], ebx
je 0x417e8e
lea ecx, [esp + 0x48]
call fcn.0040ac20
mov eax, dword [esp + 0x4c]
jmp 0x417e93
mov eax, 0x765608
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x80563c]
mov ecx, dword [0x805640]
cmp eax, ebx
jne 0x417eae
mov eax, 0x765608
push ecx
push ebx
push eax
lea ecx, [esp + 0x54]
call fcn.00427160
cmp eax, ebx
jl 0x417f08
mov ecx, dword [0x76560c]
mov eax, dword [0x805640]
push ecx
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.0040aa70
mov ecx, dword [0x76560c]
mov byte [esp + 0x1d0], 2
push ecx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00404560
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d4], 1
call fcn.00404760
jmp 0x417f1e
mov edx, dword [0x76560c]
lea eax, [esp + 0x48]
push edx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00404560
cmp dword [esp + 0x40], ebx
jbe 0x41807a
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x5c], cl
lea ecx, [esp + 0x5c]
call fcn.00404760
push 1
lea edx, [esp + 0x17]
push ebx
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1dc], 3
mov byte [esp + 0x1f], 0x3a
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417fd8
or ecx, eax
mov edi, 0x7a3f88
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0x7a3f88
lea ecx, [esp + 0x44]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417fd8
or ecx, eax
mov edi, 0x7a3f84
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0x7a3f84
lea ecx, [esp + 0x44]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x417fd8
cmp dword [0x805640], ebx
jbe 0x417fc0
mov eax, dword [0x76560c]
lea ecx, [esp + 0x58]
push eax
push ebx
push 0x805638
call fcn.00404560
mov ecx, dword [0x76560c]
lea edx, [esp + 0x38]
push ecx
push ebx
push edx
lea ecx, [esp + 0x64]
call fcn.00413a70
jmp 0x417fed
mov eax, dword [0x76560c]
lea ecx, [esp + 0x38]
push eax
push ebx
push ecx
lea ecx, [esp + 0x64]
call fcn.00404560
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jne 0x417ffe
mov eax, 0x765608
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4180aa
lea edx, [esp + 0x58]
push 0x7a3f68
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0040aca0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1d0], 4
cmp eax, ebx
jne 0x41804b
mov eax, 0x765608
push eax
call fcn.00455190
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d0], 3
push 1
call fcn.00404760
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1d4], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d4], 0
call fcn.00404760
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1d4], 0xffffffff
call fcn.00404760
xor al, al
jmp 0x4184d8
push ebp
mov ecx, esi
call fcn.00444ad0
mov cl, byte [0x7c4d88]
xor eax, eax
mov byte [esp + 0x6c], cl
mov ecx, 0x3f
lea edi, [esp + 0x6d]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
push edx
lea eax, [esp + 0x70]
push 4
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push eax
push ebp
call ebx
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x174]
push 0x5c
push edx
push ebp
call ebx
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x41822e
lea edx, [esp + 0x20]
push 0
push edx
push eax
lea eax, [esp + 0x78]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], dl
mov byte [esp + ecx + 0x70], 0
lea ecx, [esp + 0x28]
call fcn.00404760
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x20], edi
call fcn.00401450
test al, al
je 0x41818f
mov ecx, edi
mov edi, dword [esp + 0x28]
mov eax, ecx
lea esi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00404970
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1d0], 5
test eax, eax
je 0x41821b
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, 0x805658
call fcn.004273a0
mov ecx, dword [0x80565c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x41821b
add eax, 0x1c
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, 0x805668
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x41821b
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x4181f3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, 0x805658
call fcn.00427380
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x805668
call fcn.0040c8d0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d4], 3
call fcn.00404760
cmp dword [esi + 0xe4], 1
jne 0x41836a
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push ebp
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x41836a
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x74]
push eax
push edx
push ebp
call ebx
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x24], cl
push 0
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x70], 0
call fcn.00404760
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x20], esi
call fcn.00401450
test al, al
je 0x4182cc
mov edi, dword [esp + 0x28]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00404970
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1d0], 6
test eax, eax
je 0x418357
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x805658
call fcn.004273a0
mov eax, dword [0x80565c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x418357
add ecx, 0x1c
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, 0x805668
call fcn.0040d5c0
mov eax, dword [0x80566c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x418357
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x41832f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x805658
call fcn.00427380
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, 0x805668
call fcn.0040c8d0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d4], 3
call fcn.00404760
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push ebp
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x418493
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x74]
push eax
push edx
push ebp
call ebx
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x24], cl
push 0
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x70], 0
call fcn.00404760
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.00401450
test al, al
je 0x4183f5
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00404970
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1d0], 7
test eax, eax
je 0x418480
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, 0x805560
call fcn.0042c000
mov eax, dword [0x805564]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x418480
add ecx, 0x1c
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x805570
call fcn.00427f30
mov eax, dword [0x805574]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x418480
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x418458
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x805560
call fcn.00427ef0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, 0x805570
call fcn.00427f10
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d4], 3
call fcn.00404760
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1d4], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d4], 0
call fcn.00404760
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1d4], 0xffffffff
call fcn.00404760
mov al, 1
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret 4