Function at 0x41a500
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x73bbc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
mov ebx, dword [esp + 0x354]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
call fcn.00444ad0
mov al, byte [0x7c4d88]
mov ecx, 0x7f
mov byte [esp + 0x50], al
xor eax, eax
lea edi, [esp + 0x51]
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
rep stosd dword es:[edi], eax
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
push edx
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x54]
push 4
push edx
push ebx
stosb byte es:[edi], al
call esi
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [ebp + 0x34]
push 4
push ecx
push ebx
call esi
lea edx, [esp + 0x14]
push 0
lea eax, [ebp + 0x38]
push edx
push 0xc
push eax
push ebx
mov dword [esp + 0x58], eax
call esi
lea ecx, [esp + 0x14]
push 0
lea eax, [ebp + 0xec]
push ecx
push 0x40
push eax
push ebx
mov dword [esp + 0x54], eax
call esi
lea edx, [esp + 0x14]
push 0
lea eax, [ebp + 0x44]
push edx
push 0xc
push eax
push ebx
mov dword [esp + 0x5c], eax
call esi
lea eax, [esp + 0x14]
push 0
lea edi, [ebp + 0x50]
push eax
push 0x5c
push edi
push ebx
call esi
mov ecx, dword [edi + 0xc]
xor eax, eax
lea edx, [esp + 0x14]
push eax
push edx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
push 4
lea eax, [esp + 0x24]
push eax
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x41a859
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x58]
push eax
push edx
push ebx
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x250]
push ecx
push 0
push 0
lea edx, [esp + 0x5c]
push 0
push edx
mov byte [esp + eax + 0x64], 0
call fcn.00727595
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
add esp, 0x14
lea eax, [esp + 0x250]
push 0x7a3f94
push eax
call edi
test eax, eax
jne 0x41a737
mov cl, byte [esp + 0x13]
push eax
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00404760
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x34], edi
call fcn.00401450
test al, al
je 0x41a6a4
mov ecx, edi
mov edi, dword [esp + 0x20]
mov edx, ecx
lea esi, [esp + 0x50]
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 + 0x20]
call fcn.00404970
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 0x158]
mov dword [esp + 0x358], 0
test eax, eax
je 0x41a711
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.00404760
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7c4d88
lea ecx, [esp + 0x38]
call fcn.004047b0
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
mov byte [esp + 0x35c], 1
call fcn.004195a0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x35c], 0
call fcn.00404760
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x12c]
push eax
call fcn.0044c780
mov dword [esp + 0x358], 0xffffffff
push 1
lea ecx, [esp + 0x20]
jmp 0x41a854
lea ecx, [esp + 0x250]
push 0x7a3f8c
push ecx
call edi
test eax, eax
jne 0x41a859
mov dl, byte [esp + 0x13]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.00404760
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x34], edi
call fcn.00401450
test al, al
je 0x41a7ae
mov ecx, edi
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 0x50]
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 + 0x20]
call fcn.00404970
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 0x154]
mov dword [esp + 0x358], 2
test eax, eax
je 0x41a81b
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.00404760
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7c4d88
lea ecx, [esp + 0x38]
call fcn.004047b0
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
mov byte [esp + 0x35c], 3
call fcn.00419430
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x35c], 2
call fcn.00404760
lea edi, [ebp + 0x158]
push 1
push edi
mov ecx, 0x8055f0
call fcn.004260a0
push 0
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, 0x8055f0
call fcn.00425df0
mov dword [edi], eax
mov dword [esp + 0x358], 0xffffffff
push 1
lea ecx, [esp + 0x20]
call fcn.00404760
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x41a912
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x58]
push eax
push edx
push ebx
call esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1c], cl
push 0
lea ecx, [esp + 0x20]
mov byte [esp + eax + 0x54], 0
call fcn.00404760
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00401450
test al, al
je 0x41a8e4
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
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 + 0x20]
call fcn.00404970
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0x35c], 4
call dword [eax + 0x24]
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x35c], 0xffffffff
call fcn.00404760
add ebp, 0xac
mov ecx, ebp
call fcn.004253e0
mov esi, dword [esp + 0x48]
mov edx, dword [esi]
mov dword [ebp], edx
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 8]
push edx
mov dword [ebp + 0x28], ecx
mov ecx, ebp
call fcn.00425990
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004251d0
mov ecx, dword [eax]
pop edi
mov dword [ebp + 0x30], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34c]
mov dword [ebp + 0x34], edx
mov eax, dword [eax + 8]
pop esi
mov dword [ebp + 0x38], eax
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34c
ret 4