Function at 0x418610
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7b5a5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1f0]
mov ebx, ecx
xor esi, esi
lea ecx, [esp + 0x4c]
mov al, byte [edi]
push esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x50], al
call fcn.00404e60
mov ecx, dword [0x7e565c]
push ecx
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.00404c60
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1e8], esi
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], dl
call fcn.00404e60
mov eax, dword [esp + 0x54]
mov byte [esp + 0x1e8], 1
cmp eax, esi
je 0x4186aa
cmp dword [esp + 0x50], esi
je 0x41869e
lea ecx, [esp + 0x4c]
call fcn.0040b450
mov eax, dword [esp + 0x50]
jmp 0x4186a3
mov eax, 0x7e5658
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x8b1594]
mov ecx, dword [0x8b1598]
cmp eax, esi
jne 0x4186be
mov eax, 0x7e5658
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00428220
cmp eax, esi
jl 0x418718
mov ecx, dword [0x7e565c]
mov eax, dword [0x8b1598]
push ecx
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x58]
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0x1e8], 2
push ecx
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.00404c60
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 1
call fcn.00404e60
jmp 0x41872e
mov edx, dword [0x7e565c]
lea eax, [esp + 0x4c]
push edx
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.00404c60
cmp dword [esp + 0x44], esi
jbe 0x41888a
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x70], cl
lea ecx, [esp + 0x70]
call fcn.00404e60
push 1
lea edx, [esp + 0x17]
push esi
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f4], 3
mov byte [esp + 0x1f], 0x3a
call fcn.00428220
cmp eax, 0xffffffff
jne 0x4187e8
or ecx, eax
mov edi, 0x82b660
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x82b660
lea ecx, [esp + 0x48]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x4187e8
or ecx, eax
mov edi, 0x82b65c
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x82b65c
lea ecx, [esp + 0x48]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x4187e8
cmp dword [0x8b1598], esi
jbe 0x4187d0
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x6c]
push eax
push esi
push 0x8b1590
call fcn.00404c60
mov ecx, dword [0x7e565c]
lea edx, [esp + 0x3c]
push ecx
push esi
push edx
lea ecx, [esp + 0x78]
call fcn.004147b0
jmp 0x4187fd
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x3c]
push eax
push esi
push ecx
lea ecx, [esp + 0x78]
call fcn.00404c60
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], esi
cmp eax, esi
jne 0x41880e
mov eax, 0x7e5658
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4188ba
lea edx, [esp + 0x6c]
push 0x82b628
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0040b4d0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1e8], 4
cmp eax, esi
jne 0x41885b
mov eax, 0x7e5658
push eax
call fcn.0045afa0
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1e8], 3
push 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1ec], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1ec], 0
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.00404e60
xor al, al
jmp 0x418e8b
push ebp
mov ecx, ebx
call fcn.0044a7c0
mov cl, byte [0x870c08]
xor eax, eax
mov byte [esp + 0x84], cl
mov ecx, 0x3f
lea edi, [esp + 0x85]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
push edx
lea eax, [esp + 0x88]
push 4
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
push eax
push ebp
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 0x418b78
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 + 0x60], dl
mov byte [esp + ecx + 0x88], 0
lea ecx, [esp + 0x60]
call fcn.00404e60
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 + 0x60]
push ebx
call fcn.00401b40
test al, al
je 0x4189b0
mov edi, dword [esp + 0x60]
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 + 0x60]
call fcn.00405070
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [0x8b169c]
push 0x8b1600
mov byte [esp + 0x1ec], 5
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4189e1
push 0x8b1600
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x418b61
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
call fcn.004267d0
mov eax, dword [esp + 0x28]
mov bl, 6
test eax, eax
mov byte [esp + 0x1e8], bl
je 0x418a0f
lea ecx, [esp + 0x24]
call fcn.0040b450
mov eax, dword [esp + 0x28]
jmp 0x418a14
mov eax, 0x7e5658
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x24]
lea eax, [esp + 0x7c]
push edx
push eax
mov ecx, 0x8b15e0
mov dword [esp + 0x1c], 0
call fcn.00428540
mov eax, dword [0x8b15e4]
mov ecx, dword [esp + 0x7c]
cmp ecx, eax
jne 0x418b18
push 0x50
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1e8], 7
je 0x418a6b
mov ecx, eax
call fcn.0044fa80
jmp 0x418a6d
xor eax, eax
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x14], eax
mov dword [eax + 0x28], edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test al, al
jne 0x418aa9
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x418a9c
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], 0
jmp 0x418b43
mov eax, dword [esp + 0x14]
mov ecx, 0x8b15e0
push eax
call fcn.00428390
cmp eax, 0xffffffff
jne 0x418b43
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov edi, eax
add eax, 0x18
push eax
push ecx
mov ecx, 0x8b15e0
call fcn.00428540
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x8b15f0
mov eax, dword [edx + 0x1c]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x1c], eax
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x418b09
inc dword [ecx + 0x10]
test edi, edi
je 0x418b43
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
jmp 0x418b43
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, 0x8b15f0
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x418b43
inc dword [ecx + 0x10]
push 0x8b1600
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 5
call fcn.00404e60
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1ec], 3
call fcn.00404e60
mov ebx, dword [esp + 0x34]
cmp dword [ebx + 0xe4], 1
jne 0x418da6
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 0x418da6
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.00404e60
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.00404eb0
mov edi, dword [0x8b169c]
push 0x8b1600
mov byte [esp + 0x1ec], 8
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x418c28
push 0x8b1600
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x418d93
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5c]
push eax
call fcn.004267d0
mov bl, 9
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x1ec], bl
call fcn.004268f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, 0x8b15e0
mov dword [esp + 0x1c], 0
call fcn.00428540
mov eax, dword [0x8b15e4]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jne 0x418d4a
push 0x50
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1e8], 0xa
je 0x418ca1
mov ecx, eax
call fcn.0044fa80
jmp 0x418ca3
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 + 0x5c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x418cdf
test ecx, ecx
je 0x418cd2
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esp + 0x14], 0
jmp 0x418d75
push ecx
mov ecx, 0x8b15e0
call fcn.00428390
cmp eax, 0xffffffff
jne 0x418d75
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov edi, eax
add eax, 0x18
push eax
push edx
mov ecx, 0x8b15e0
call fcn.00428540
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], ecx
push eax
mov ecx, 0x8b15f0
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x418d3b
inc dword [ecx + 0x10]
test edi, edi
je 0x418d75
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x418d75
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x8b15f0
mov dword [esp + 0x1c], eax
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x418d75
inc dword [ecx + 0x10]
push 0x8b1600
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1ec], 8
call fcn.00404e60
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 3
call fcn.00404e60
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 0x418e46
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 + 0x28], dl
mov byte [esp + ecx + 0x88], 0
lea ecx, [esp + 0x28]
call fcn.00404e60
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x84]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404eb0
push 0
lea ecx, [esp + 0x28]
push 1
push ecx
mov ecx, 0x8b1448
mov byte [esp + 0x1f4], 0xb
call fcn.004274a0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ec], 3
call fcn.00404e60
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1ec], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1ec], 0
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x1ec], 0xffffffff
call fcn.00404e60
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