Function at 0x423b50
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c00
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x5c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
mov edi, eax
inc edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp + 0xc], ebx
jne 0x423bca
mov esi, 0x431b84
mov eax, dword [esi]
cmp byte [eax], 0x30
jne 0x423ba2
inc eax
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x423bbf
inc ebx
add esi, 4
cmp esi, 0x431b98
jb 0x423b9a
jmp 0x423bd1
test ebx, ebx
je 0x423bca
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x423beb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 3
push connect
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423c1e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00423e50
add esp, 4
test eax, eax
jne 0x423c48
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0xa00000
jbe 0x423c70
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
test edi, edi
jne 0x423ca3
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push edi
call esi
xor eax, eax
cmp ebx, eax
jne 0x423cd1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebx + 0x3c]
add ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ebx
xor edx, edx
mov dx, word [ebx + 0x14]
lea eax, [edx + ebx + 0x18]
mov dword [ebp - 0x48], eax
cmp dword [ebx], 0x4550
jne 0x423dff
cmp word [ebx + 0x5c], 1
je 0x423dff
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x423dff
mov ax, word [ebx + 6]
test ax, ax
je 0x423dff
mov ecx, 3
mov edi, str.UpackByDwing
lea esi, [ebx - 0x10]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x423ded
mov ecx, dword [ebp - 0x48]
push ecx
push edx
and eax, 0xffff
push eax
call fcn.00411c10
add esp, 0xc
test eax, eax
jne 0x423ded
cmp word [ebx + 6], 2
jne 0x423d6f
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0x7865742e
je 0x423d6f
mov dword [ebp - 0x30], 1
jmp 0x423e06
push str.userinit.exe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x423d96
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x6164722e
jne 0x423d96
mov dword [ebp - 0x30], 1
jmp 0x423e06
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x423db8
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x423daf
cmp eax, dword [ebx + 0x50]
jbe 0x423db8
mov dword [ebp - 0x30], 1
jmp 0x423e06
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x50], eax
cmp eax, dword [ebx + 0x50]
ja 0x423dcd
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x423e06
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00411d10
add esp, 0x10
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
je 0x423e06
mov dword [ebp - 0x30], 1
jmp 0x423e06
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x423e39
mov edx, dword [ebp + 8]
push edx
call fcn.00418c00
mov ecx, eax
call fcn.00418ff0
test eax, eax
je 0x423e39
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret