Function at 0x41c640
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7b5d1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x45c]
mov ebx, ecx
xor esi, esi
lea ecx, [esp + 0x5c]
mov al, byte [edi]
push esi
mov byte [esp + 0x60], al
call fcn.00404e60
mov ecx, dword [0x7e565c]
push ecx
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.00404c60
mov dl, byte [esp + 0x13]
mov dword [esp + 0x454], esi
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404e60
mov eax, dword [esp + 0x64]
mov byte [esp + 0x454], 1
cmp eax, esi
je 0x41c6d6
cmp dword [esp + 0x60], esi
je 0x41c6ca
lea ecx, [esp + 0x5c]
call fcn.0040b450
mov eax, dword [esp + 0x60]
jmp 0x41c6cf
mov eax, 0x7e5658
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x8b1594]
mov ecx, dword [0x8b1598]
cmp eax, esi
jne 0x41c6ea
mov eax, 0x7e5658
push ecx
push esi
push eax
lea ecx, [esp + 0x68]
call fcn.00428220
cmp eax, esi
jl 0x41c744
mov ecx, dword [0x7e565c]
mov eax, dword [0x8b1598]
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x68]
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0x454], 2
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404c60
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 1
call fcn.00404e60
jmp 0x41c75a
mov edx, dword [0x7e565c]
lea eax, [esp + 0x5c]
push edx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404c60
cmp dword [esp + 0x54], esi
jbe 0x41c8b6
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x74], cl
lea ecx, [esp + 0x74]
call fcn.00404e60
push 1
lea edx, [esp + 0x17]
push esi
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x460], 3
mov byte [esp + 0x1f], 0x3a
call fcn.00428220
cmp eax, 0xffffffff
jne 0x41c814
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 + 0x58]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x41c814
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 + 0x58]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x41c814
cmp dword [0x8b1598], esi
jbe 0x41c7fc
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x70]
push eax
push esi
push 0x8b1590
call fcn.00404c60
mov ecx, dword [0x7e565c]
lea edx, [esp + 0x4c]
push ecx
push esi
push edx
lea ecx, [esp + 0x7c]
call fcn.004147b0
jmp 0x41c829
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x4c]
push eax
push esi
push ecx
lea ecx, [esp + 0x7c]
call fcn.00404c60
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], esi
cmp eax, esi
jne 0x41c83a
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 0x41c8e6
lea edx, [esp + 0x70]
push 0x82b6c8
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040b4d0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x454], 4
cmp eax, esi
jne 0x41c887
mov eax, 0x7e5658
push eax
call fcn.0045afa0
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], 3
push 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x458], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x458], 0
call fcn.00404e60
push 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x458], 0xffffffff
call fcn.00404e60
xor al, al
jmp 0x41cfa1
push ebp
mov ecx, ebx
call fcn.0044a7c0
mov cl, byte [0x870c08]
xor eax, eax
mov byte [esp + 0xb0], cl
mov ecx, 0x7f
lea edi, [esp + 0xb1]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push esi
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x9c]
push 4
push eax
push ebp
mov dword [esp + 0x38], esi
call ebx
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x98]
push 4
push edx
push ebp
call ebx
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0xa0]
push 0xc
push ecx
push ebp
call ebx
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x2b8]
push 0x40
push eax
push ebp
call ebx
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0xac]
push 0xc
push edx
push ebp
call ebx
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3f8]
push 0x5c
push ecx
push ebp
call ebx
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x2c]
push 4
push eax
push ebp
call ebx
mov eax, dword [esp + 0x24]
cmp eax, esi
jle 0x41ce32
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0xb8]
push eax
push edx
push ebp
call ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2f0]
push ecx
push esi
push esi
lea edx, [esp + 0xbc]
push esi
push edx
mov byte [esp + eax + 0xc4], 0
call fcn.007a33b5
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
add esp, 0x14
lea eax, [esp + 0x2f0]
push 0x82b6a4
push eax
call edi
test eax, eax
jne 0x41cc19
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
call fcn.00404e60
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x1c], edi
call fcn.00401b40
test al, al
je 0x41ca60
mov ecx, edi
mov edi, dword [esp + 0x3c]
mov edx, ecx
lea esi, [esp + 0xb0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
xor esi, esi
mov byte [ecx + eax], 0
push 0x8b1728
mov byte [esp + 0x458], 5
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x40], esi
jne 0x41ca89
push 0x8b1728
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x41cc06
mov dl, byte [esp + 0x38]
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00404e60
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x38]
push eax
push esi
push ecx
lea ecx, [esp + 0x34]
call fcn.00404c60
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 6
call fcn.004268f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, 0x8b1708
mov dword [esp + 0x1c], esi
call fcn.00428bf0
mov eax, dword [0x8b170c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jne 0x41cbbd
push 0x7c
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
mov byte [esp + 0x454], 7
je 0x41cb15
mov ecx, eax
call fcn.004521e0
jmp 0x41cb17
xor eax, eax
mov byte [esp + 0x454], 6
mov dword [esp + 0x14], eax
mov dword [eax + 0x28], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test al, al
jne 0x41cb50
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x41cb47
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], esi
jmp 0x41cbe8
mov eax, dword [esp + 0x14]
mov ecx, 0x8b1708
push eax
call fcn.00426f20
cmp eax, 0xffffffff
jne 0x41cbe8
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea ecx, [edi + 0x18]
push ecx
push edx
mov ecx, 0x8b1708
call fcn.00428bf0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push eax
mov ecx, 0x8b1718
call fcn.0042bef0
mov eax, dword [0x8b171c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x41cbae
inc dword [ecx + 0x10]
cmp edi, esi
je 0x41cbe8
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x41cbe8
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x8b1718
mov dword [esp + 0x1c], eax
call fcn.0042bef0
mov eax, dword [0x8b171c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x41cbe8
inc dword [ecx + 0x10]
push 0x8b1728
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 5
call fcn.00404e60
mov byte [esp + 0x454], 3
push 1
lea ecx, [esp + 0x3c]
jmp 0x41ce2d
lea eax, [esp + 0x2f0]
push 0x82b69c
push eax
call edi
test eax, eax
jne 0x41ce32
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
call fcn.00404e60
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x24], edi
call fcn.00401b40
test al, al
je 0x41cc92
mov ecx, edi
mov edi, dword [esp + 0x3c]
mov edx, ecx
lea esi, [esp + 0xb0]
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 + 0x3c]
call fcn.00405070
xor esi, esi
push 0x8b1538
mov byte [esp + 0x458], 8
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x40], esi
jne 0x41ccbb
push 0x8b1538
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x41ce1f
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004267d0
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 9
call fcn.004268f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, 0x8b1518
mov dword [esp + 0x1c], esi
call fcn.004287a0
mov eax, dword [0x8b151c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x41cdd6
push 0x54
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov byte [esp + 0x454], 0xa
je 0x41cd2e
mov ecx, eax
call fcn.00451d50
jmp 0x41cd30
xor eax, eax
mov byte [esp + 0x454], 9
mov dword [esp + 0x14], eax
mov dword [eax + 0x28], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test al, al
jne 0x41cd69
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x41cd60
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], esi
jmp 0x41ce01
mov eax, dword [esp + 0x14]
mov ecx, 0x8b1518
push eax
call fcn.004285f0
cmp eax, 0xffffffff
jne 0x41ce01
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea ecx, [edi + 0x18]
push ecx
push edx
mov ecx, 0x8b1518
call fcn.004287a0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x4c]
mov dword [esp + 0x18], ecx
push eax
mov ecx, 0x8b1528
call fcn.0042a750
mov eax, dword [0x8b152c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
je 0x41cdc7
inc dword [ecx + 0x10]
cmp edi, esi
je 0x41ce01
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x41ce01
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, 0x8b1528
mov dword [esp + 0x1c], eax
call fcn.0042a750
mov eax, dword [0x8b152c]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x41ce01
inc dword [ecx + 0x10]
push 0x8b1538
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 8
call fcn.00404e60
mov byte [esp + 0x454], 3
push 1
lea ecx, [esp + 0x3c]
call fcn.00404e60
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x24]
cmp eax, esi
jle 0x41ced4
lea edx, [esp + 0x18]
push esi
push edx
push eax
lea eax, [esp + 0xbc]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
push esi
mov byte [esp + 0x2c], dl
mov byte [esp + ecx + 0xb4], 0
lea ecx, [esp + 0x2c]
call fcn.00404e60
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xb0]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00404eb0
mov ecx, dword [0x8b169c]
lea edx, [esp + 0x28]
push ecx
push 1
push edx
mov ecx, 0x8b15e0
mov byte [esp + 0x460], 0xb
call fcn.0040ce70
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 3
call fcn.00404e60
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x74]
push 4
push ecx
push ebp
call ebx
cmp dword [esp + 0x6c], esi
jle 0x41cf25
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x94]
push 4
push eax
push ebp
call ebx
lea ecx, [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x8c]
push 4
push edx
push ebp
call ebx
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x90]
push 4
push ecx
push ebp
call ebx
jmp 0x41cf29
mov dword [esp + 0x6c], esi
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x88]
push 4
push eax
push ebp
mov dword [esp + 0x94], esi
call ebx
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x458], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x458], 0
call fcn.00404e60
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x454], 0xffffffff
cmp ecx, esi
je 0x41cf9f
mov al, byte [ecx - 1]
test al, al
je 0x41cf95
cmp al, 0xff
je 0x41cf95
dec al
mov byte [ecx - 1], al
jmp 0x41cf9f
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret 4