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

Disassembly:
push 0xffffffffffffffff
push 0x683c17
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.00438ae0
mov al, byte [0x6dfe28]
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 + 0x124]
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 0x4148c9
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.0067451b
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
add esp, 0x14
lea eax, [esp + 0x250]
push 0x6d3a6c
push eax
call edi
test eax, eax
jne 0x4147a7
mov cl, byte [esp + 0x13]
push eax
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.004031c0
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.00403350
test al, al
je 0x414714
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.00403330
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 0x118]
mov dword [esp + 0x358], 0
test eax, eax
je 0x414781
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x38]
call fcn.004083a0
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
mov byte [esp + 0x35c], 1
call fcn.00413610
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x35c], 0
call fcn.004031c0
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0xec]
push eax
call fcn.004418e0
mov dword [esp + 0x358], 0xffffffff
push 1
lea ecx, [esp + 0x20]
jmp 0x4148c4
lea ecx, [esp + 0x250]
push 0x6d3a64
push ecx
call edi
test eax, eax
jne 0x4148c9
mov dl, byte [esp + 0x13]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.004031c0
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.00403350
test al, al
je 0x41481e
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.00403330
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x358], 2
test eax, eax
je 0x41488b
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x38]
call fcn.004083a0
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
mov byte [esp + 0x35c], 3
call fcn.004134a0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x35c], 2
call fcn.004031c0
lea edi, [ebp + 0x118]
push 1
push edi
mov ecx, 0x6e2590
call fcn.0041d5c0
push 0
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, 0x6e2590
call fcn.0041d260
mov dword [edi], eax
mov dword [esp + 0x358], 0xffffffff
push 1
lea ecx, [esp + 0x20]
call fcn.004031c0
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 0x414982
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.004031c0
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.00403350
test al, al
je 0x414954
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.00403330
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.004031c0
add ebp, 0xac
mov ecx, ebp
call fcn.0041d580
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.0041dda0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0041d1f0
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