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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042f440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043fc50
test eax, eax
jne 0x422378
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x3c]
jmp 0x4226b6
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x1c]
call fcn.0043fc50
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042f440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0043fc50
test eax, eax
jne 0x4223d2
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x40]
jmp 0x4226b6
lea ecx, [ebp - 0x18]
call fcn.0043fc50
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x422414
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x44]
jmp 0x4226b6
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x3c], 0
jg 0x422447
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x48]
jmp 0x4226b6
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x24]
jb 0x42247c
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x4c]
jmp 0x4226b6
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004220d0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4224bb
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x50]
jmp 0x4226b6
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0
jne 0x422502
push 0xe
mov edx, dword [ebp - 0x20]
push edx
call fcn.004221e0
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x54]
jmp 0x4226b6
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x20]
jae 0x422692
lea edx, [ebp - 0x14]
push edx
push 0xe
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00422210
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x422561
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x58]
jmp 0x4226b6
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
test edx, edx
jne 0x422577
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
cmp ecx, 1
je 0x4225a0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x5c]
jmp 0x4226b6
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x14]
push ecx
push 3
mov edx, dword [ebp - 0x38]
neg edx
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00422210
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x422609
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x60]
jmp 0x4226b6
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x28
je 0x42263f
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0xc
je 0x42263f
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x64]
jmp 0x4226b6
cmp dword [ebp + 0x1c], 0
je 0x422651
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x38]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x30000
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
jmp 0x422509
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00422cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00422cd0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret