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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5221b0
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.00444150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00459cf0
test eax, eax
jne 0x433f88
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x3c]
jmp 0x43430a
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x1c]
call fcn.00459cf0
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x18]
call fcn.00444150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00459cf0
test eax, eax
jne 0x433fe2
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x40]
jmp 0x43430a
lea ecx, [ebp - 0x18]
call fcn.00459cf0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x434024
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x44]
jmp 0x43430a
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x3c], 0
jg 0x434057
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x48]
jmp 0x43430a
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x24]
jb 0x43408c
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x4c]
jmp 0x43430a
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00433ce0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4340cb
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x50]
jmp 0x43430a
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0
jne 0x434112
push 0xe
mov edx, dword [ebp - 0x20]
push edx
call fcn.00433df0
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.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x54]
jmp 0x43430a
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x20]
jae 0x4342e6
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.00433e20
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x434171
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x58]
jmp 0x43430a
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
test edx, edx
jne 0x434187
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
cmp ecx, 1
je 0x4341d2
xor edx, edx
jne 0x4341a9
push 0
push 0
push 0x122
push str.ExtractIcon.cpp
push 2
call fcn.004ddbd0
add esp, 0x14
cmp eax, 1
jne 0x4341a9
int3
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x5c]
jmp 0x43430a
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push eax
push 3
mov ecx, dword [ebp - 0x38]
neg ecx
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00433e20
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x43423b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x60]
jmp 0x43430a
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0x28
je 0x434293
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0xc
je 0x434293
xor ecx, ecx
jne 0x43426d
push 0
push 0
push 0x12f
push str.ExtractIcon.cpp
push 2
call fcn.004ddbd0
add esp, 0x14
cmp eax, 1
jne 0x43426d
int3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x64]
jmp 0x43430a
cmp dword [ebp + 0x1c], 0
je 0x4342a5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x30000
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
jmp 0x434119
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00434940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret