Function at 0x41b300
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x73bd4a
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.00404760
mov ecx, dword [0x76560c]
push ecx
push esi
push edi
lea ecx, [esp + 0x68]
call fcn.00404560
mov dl, byte [esp + 0x13]
mov dword [esp + 0x454], esi
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404760
mov eax, dword [esp + 0x64]
mov byte [esp + 0x454], 1
cmp eax, esi
je 0x41b396
cmp dword [esp + 0x60], esi
je 0x41b38a
lea ecx, [esp + 0x5c]
call fcn.0040ac20
mov eax, dword [esp + 0x60]
jmp 0x41b38f
mov eax, 0x765608
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x80563c]
mov ecx, dword [0x805640]
cmp eax, esi
jne 0x41b3aa
mov eax, 0x765608
push ecx
push esi
push eax
lea ecx, [esp + 0x68]
call fcn.00427160
cmp eax, esi
jl 0x41b404
mov ecx, dword [0x76560c]
mov eax, dword [0x805640]
push ecx
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x68]
call fcn.0040aa70
mov ecx, dword [0x76560c]
mov byte [esp + 0x454], 2
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404560
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 1
call fcn.00404760
jmp 0x41b41a
mov edx, dword [0x76560c]
lea eax, [esp + 0x5c]
push edx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404560
cmp dword [esp + 0x54], esi
jbe 0x41b576
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x74], cl
lea ecx, [esp + 0x74]
call fcn.00404760
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.00427160
cmp eax, 0xffffffff
jne 0x41b4d4
or ecx, eax
mov edi, 0x7a3f88
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x7a3f88
lea ecx, [esp + 0x58]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x41b4d4
or ecx, eax
mov edi, 0x7a3f84
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x7a3f84
lea ecx, [esp + 0x58]
call fcn.00427160
cmp eax, 0xffffffff
jne 0x41b4d4
cmp dword [0x805640], esi
jbe 0x41b4bc
mov eax, dword [0x76560c]
lea ecx, [esp + 0x70]
push eax
push esi
push 0x805638
call fcn.00404560
mov ecx, dword [0x76560c]
lea edx, [esp + 0x4c]
push ecx
push esi
push edx
lea ecx, [esp + 0x7c]
call fcn.00413a70
jmp 0x41b4e9
mov eax, dword [0x76560c]
lea ecx, [esp + 0x4c]
push eax
push esi
push ecx
lea ecx, [esp + 0x7c]
call fcn.00404560
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], esi
cmp eax, esi
jne 0x41b4fa
mov eax, 0x765608
push esi
push 0x80
push 3
push esi
push esi
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41b5a6
lea edx, [esp + 0x70]
push 0x7a3f68
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040aca0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x454], 4
cmp eax, esi
jne 0x41b547
mov eax, 0x765608
push eax
call fcn.00455190
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], 3
push 1
call fcn.00404760
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x458], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x458], 0
call fcn.00404760
push 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x458], 0xffffffff
call fcn.00404760
xor al, al
jmp 0x41bc47
push ebp
mov ecx, ebx
call fcn.00444ad0
mov cl, byte [0x7c4d88]
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 0x41bab2
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.00727595
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
add esp, 0x14
lea eax, [esp + 0x2f0]
push 0x7a3f94
push eax
call edi
test eax, eax
jne 0x41b8b9
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
call fcn.00404760
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.00401450
test al, al
je 0x41b720
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
mov eax, dword [esp + 0x40]
mov byte [esp + 0x454], 5
cmp eax, esi
je 0x41b8a6
mov dl, byte [esp + 0x38]
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00404760
mov eax, dword [0x76560c]
lea ecx, [esp + 0x38]
push eax
push esi
push ecx
lea ecx, [esp + 0x34]
call fcn.00404560
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 6
call fcn.004258f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, 0x805708
mov dword [esp + 0x1c], esi
call fcn.00427a40
mov eax, dword [0x80570c]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jne 0x41b868
push 0x7c
call fcn.00726f70
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
mov byte [esp + 0x454], 7
je 0x41b7c0
mov ecx, eax
call fcn.0044bd50
jmp 0x41b7c2
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 0x41b7fb
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x41b7f2
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], esi
jmp 0x41b893
mov eax, dword [esp + 0x14]
mov ecx, 0x805708
push eax
call fcn.00426160
cmp eax, 0xffffffff
jne 0x41b893
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea ecx, [edi + 0x18]
push ecx
push edx
mov ecx, 0x805708
call fcn.00427a40
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, 0x805718
call fcn.0042ad00
mov eax, dword [0x80571c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x41b859
inc dword [ecx + 0x10]
cmp edi, esi
je 0x41b893
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x41b893
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x805718
mov dword [esp + 0x1c], eax
call fcn.0042ad00
mov eax, dword [0x80571c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x41b893
inc dword [ecx + 0x10]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 5
call fcn.00404760
mov byte [esp + 0x454], 3
push 1
lea ecx, [esp + 0x3c]
jmp 0x41baad
lea eax, [esp + 0x2f0]
push 0x7a3f8c
push eax
call edi
test eax, eax
jne 0x41bab2
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
call fcn.00404760
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.00401450
test al, al
je 0x41b932
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.00404970
xor esi, esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x454], 8
cmp eax, esi
je 0x41ba9f
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004257d0
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 9
call fcn.004258f0
push eax
call dword [sym.imp.user32.dll_CharLowerA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, 0x8055f0
mov dword [esp + 0x1c], esi
call fcn.00428dd0
mov eax, dword [0x8055f4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x41ba61
push 0x54
call fcn.00726f70
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov byte [esp + 0x454], 0xa
je 0x41b9b9
mov ecx, eax
call fcn.0044b920
jmp 0x41b9bb
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 0x41b9f4
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x41b9eb
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esp + 0x14], esi
jmp 0x41ba8c
mov eax, dword [esp + 0x14]
mov ecx, 0x8055f0
push eax
call fcn.00427450
cmp eax, 0xffffffff
jne 0x41ba8c
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea ecx, [edi + 0x18]
push ecx
push edx
mov ecx, 0x8055f0
call fcn.00428dd0
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, 0x805600
call fcn.00427620
mov eax, dword [0x805604]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
je 0x41ba52
inc dword [ecx + 0x10]
cmp edi, esi
je 0x41ba8c
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x41ba8c
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, 0x805600
mov dword [esp + 0x1c], eax
call fcn.00427620
mov eax, dword [0x805604]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x41ba8c
inc dword [ecx + 0x10]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 8
call fcn.00404760
mov byte [esp + 0x454], 3
push 1
lea ecx, [esp + 0x3c]
call fcn.00404760
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 0x41bb54
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.00404760
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.004047b0
mov ecx, dword [0x8056b4]
lea edx, [esp + 0x28]
push ecx
push 1
push edx
mov ecx, 0x805658
mov byte [esp + 0x460], 0xb
call fcn.0040c560
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x458], 3
call fcn.00404760
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 0x41bba5
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 0x41bba9
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.00404760
mov eax, dword [esp + 0x50]
mov byte [esp + 0x454], 0
cmp eax, esi
je 0x41bc0a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41bc01
cmp al, 0xff
je 0x41bc01
dec al
mov byte [ecx], al
jmp 0x41bc0a
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
cmp ecx, esi
mov dword [esp + 0x454], 0xffffffff
je 0x41bc45
mov al, byte [ecx - 1]
test al, al
je 0x41bc3b
cmp al, 0xff
je 0x41bc3b
dec al
mov byte [ecx - 1], al
jmp 0x41bc45
dec ecx
push ecx
call fcn.00726ea6
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