Function at 0x410f40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x904c
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x8844], 0
push 0x428818
lea eax, [ebp - 0x3818]
push eax
call fcn.00401198
add esp, 8
push 0x428818
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00401198
add esp, 8
push str.ASSEMBLYGAC
lea edx, [ebp - 0x1010]
push edx
call fcn.0040116a
add esp, 8
push 0x428818
lea eax, [ebp - 0x5020]
push eax
call fcn.00401198
add esp, 8
push str.SYSTEM32
lea ecx, [ebp - 0x5020]
push ecx
call fcn.0040116a
add esp, 8
lea edx, [ebp - 0x5020]
push edx
lea eax, [ebp - 0x810]
push eax
call fcn.00401198
add esp, 8
push 0x417a18
lea ecx, [ebp - 0x810]
push ecx
call fcn.0040116a
add esp, 8
push 0x428818
lea edx, [ebp - 0x4820]
push edx
call fcn.00401198
add esp, 8
push str.ASSEMBLYGAC_MSIL
lea eax, [ebp - 0x4820]
push eax
call fcn.0040116a
add esp, 8
push 0x428818
lea ecx, [ebp - 0x8840]
push ecx
call fcn.00401198
add esp, 8
push str.ASSEMBLYGAC_32
lea edx, [ebp - 0x8840]
push edx
call fcn.0040116a
add esp, 8
push 0x428818
lea eax, [ebp - 0x2010]
push eax
call fcn.00401198
add esp, 8
push str.ASSEMBLYNATIVEIMAGES_V2.0.50727_32
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0040116a
add esp, 8
push 0x428818
lea edx, [ebp - 0x8040]
push edx
call fcn.00401198
add esp, 8
push 0x417ac4
lea eax, [ebp - 0x8040]
push eax
call fcn.0040116a
add esp, 8
push 0x428818
lea ecx, [ebp - 0x1810]
push ecx
call fcn.00401198
add esp, 8
push str.MICROSOFT.NETFRAMEWORK
lea edx, [ebp - 0x1810]
push edx
call fcn.0040116a
add esp, 8
push 0x428818
lea eax, [ebp - 0x2818]
push eax
call fcn.00401198
add esp, 8
push str.MICROSOFT.NETDIRECTX_FOR_MANAGED_CODE
lea ecx, [ebp - 0x2818]
push ecx
call fcn.0040116a
add esp, 8
push 0x428818
lea edx, [ebp - 0x7840]
push edx
call fcn.00401198
add esp, 8
push 0x417b58
lea eax, [ebp - 0x7840]
push eax
call fcn.0040116a
add esp, 8
push 0x428818
lea ecx, [ebp - 0x3018]
push ecx
call fcn.00401198
add esp, 8
push str.WINSXSX86_MICROSOFT_WINDOWS
lea edx, [ebp - 0x3018]
push edx
call fcn.0040116a
add esp, 8
push 0x428818
lea eax, [ebp - 0x4020]
push eax
call fcn.00401198
add esp, 8
push str.WINSXSAMD64_MICROSOFT_WINDOWS
lea ecx, [ebp - 0x4020]
push ecx
call fcn.0040116a
add esp, 8
push 0x428818
lea edx, [ebp - 0x6830]
push edx
call fcn.00401198
add esp, 8
push str.WINSXSWOW64_MICROSOFT_WINDOWS
lea eax, [ebp - 0x6830]
push eax
call fcn.0040116a
add esp, 8
push 0x428818
lea ecx, [ebp - 0x9048]
push ecx
call fcn.00401198
add esp, 8
push 0x417c28
lea edx, [ebp - 0x9048]
push edx
call fcn.0040116a
add esp, 8
push 6
lea eax, [ebp - 0x3818]
push eax
lea ecx, [ebp - 0x7038]
push ecx
call fcn.004012c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x7032], dx
push str.PROGRAM_FILES
lea eax, [ebp - 0x7038]
push eax
call fcn.0040116a
add esp, 8
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x443a20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8848], eax
cmp dword [ebp - 0x8848], 0xffffffff
je 0x41178c
push 0
mov ecx, dword [ebp - 0x8848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6024], eax
cmp dword [ebp - 0x6024], 0
je 0x41177f
mov edx, dword [ebp - 0x6024]
add edx, 2
push edx
call fcn.004033d9
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41177f
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x6024]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x6024]
mov byte [ecx + 1], 0
push 0
lea edx, [ebp - 0x6028]
push edx
mov eax, dword [ebp - 0x6024]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x8848]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41176d
mov eax, dword [ebp - 0x6028]
cmp eax, dword [ebp - 0x6024]
jne 0x41176d
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0xff
jne 0x4112c7
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
cmp ecx, 0xff
jne 0x4112c7
mov dword [ebp - 0x904c], 1
jmp 0x4112d1
mov dword [ebp - 0x904c], 0
mov edx, dword [ebp - 0x904c]
mov dword [ebp - 0x8844], edx
cmp dword [ebp - 0x8844], 0
je 0x411334
mov eax, dword [ebp - 0x6024]
sub eax, 2
mov dword [ebp - 0x6024], eax
lea ecx, [ebp - 0x6024]
push ecx
mov edx, dword [ebp - 8]
add edx, 2
push edx
call fcn.004100b0
add esp, 8
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp - 0x6024]
shl eax, 1
mov dword [ebp - 0x6024], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402dfe
add esp, 4
mov edx, dword [ebp - 0x2014]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x41176d
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x6024]
mov dword [ebp - 0x6834], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x6834]
jae 0x41176d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x602c], eax
mov ecx, dword [ebp - 0x602c]
push ecx
call fcn.00402ca5
add esp, 4
mov dword [ebp - 0x381c], eax
mov edx, dword [ebp - 0x381c]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x703c], edx
mov eax, dword [ebp - 0x703c]
push eax
call fcn.00402ca5
add esp, 4
mov dword [ebp - 0x381c], eax
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
cmp edx, 0xe
jne 0x4113e6
lea eax, [ebp - 0x9048]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 0x703c]
add edx, 2
mov dword [ebp - 0x703c], edx
jmp 0x41172c
mov eax, dword [ebp - 0x703c]
movzx ecx, word [eax]
cmp ecx, 0xd
jne 0x41141e
lea edx, [ebp - 0x6830]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp - 0x703c]
add ecx, 2
mov dword [ebp - 0x703c], ecx
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 0xc
jne 0x411456
lea ecx, [ebp - 0x4020]
push ecx
lea edx, [ebp - 0x6020]
push edx
call fcn.00401198
add esp, 8
mov eax, dword [ebp - 0x703c]
add eax, 2
mov dword [ebp - 0x703c], eax
jmp 0x41172c
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
cmp edx, 0xb
jne 0x41148e
lea eax, [ebp - 0x3018]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 0x703c]
add edx, 2
mov dword [ebp - 0x703c], edx
jmp 0x41172c
mov eax, dword [ebp - 0x703c]
movzx ecx, word [eax]
cmp ecx, 0xa
jne 0x4114c6
lea edx, [ebp - 0x7840]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp - 0x703c]
add ecx, 2
mov dword [ebp - 0x703c], ecx
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 9
jne 0x4114fe
lea ecx, [ebp - 0x2818]
push ecx
lea edx, [ebp - 0x6020]
push edx
call fcn.00401198
add esp, 8
mov eax, dword [ebp - 0x703c]
add eax, 2
mov dword [ebp - 0x703c], eax
jmp 0x41172c
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
cmp edx, 8
jne 0x411536
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 0x703c]
add edx, 2
mov dword [ebp - 0x703c], edx
jmp 0x41172c
mov eax, dword [ebp - 0x703c]
movzx ecx, word [eax]
cmp ecx, 7
jne 0x41156e
lea edx, [ebp - 0x8040]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp - 0x703c]
add ecx, 2
mov dword [ebp - 0x703c], ecx
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 6
jne 0x4115a6
lea ecx, [ebp - 0x2010]
push ecx
lea edx, [ebp - 0x6020]
push edx
call fcn.00401198
add esp, 8
mov eax, dword [ebp - 0x703c]
add eax, 2
mov dword [ebp - 0x703c], eax
jmp 0x41172c
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
cmp edx, 5
jne 0x4115de
lea eax, [ebp - 0x8840]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 0x703c]
add edx, 2
mov dword [ebp - 0x703c], edx
jmp 0x41172c
mov eax, dword [ebp - 0x703c]
movzx ecx, word [eax]
cmp ecx, 4
jne 0x411616
lea edx, [ebp - 0x4820]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp - 0x703c]
add ecx, 2
mov dword [ebp - 0x703c], ecx
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 3
jne 0x41164e
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x6020]
push edx
call fcn.00401198
add esp, 8
mov eax, dword [ebp - 0x703c]
add eax, 2
mov dword [ebp - 0x703c], eax
jmp 0x41172c
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
cmp edx, 2
jne 0x411686
lea eax, [ebp - 0x5020]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 0x703c]
add edx, 2
mov dword [ebp - 0x703c], edx
jmp 0x41172c
mov eax, dword [ebp - 0x703c]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x4116bb
lea edx, [ebp - 0x1010]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp - 0x703c]
add ecx, 2
mov dword [ebp - 0x703c], ecx
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x4116d6
mov ecx, dword [ebp - 0x703c]
movzx edx, word [ecx]
test edx, edx
jne 0x4116ee
lea eax, [ebp - 0x3818]
push eax
lea ecx, [ebp - 0x6020]
push ecx
call fcn.00401198
add esp, 8
jmp 0x41172c
mov edx, dword [ebp - 0x703c]
movzx eax, word [edx]
cmp eax, 0x3f
jne 0x411723
lea ecx, [ebp - 0x7038]
push ecx
lea edx, [ebp - 0x6020]
push edx
call fcn.00401198
add esp, 8
mov eax, dword [ebp - 0x703c]
add eax, 2
mov dword [ebp - 0x703c], eax
jmp 0x41172c
xor ecx, ecx
mov word [ebp - 0x6020], cx
mov edx, dword [ebp - 0x703c]
push edx
lea eax, [ebp - 0x6020]
push eax
call fcn.0040116a
add esp, 8
mov ecx, dword [ebp - 0x381c]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x6020]
push ecx
mov edx, dword [ebp - 0x602c]
push edx
call fcn.00410550
add esp, 8
jmp 0x411353
cmp dword [ebp - 8], 0
je 0x41177f
mov eax, dword [ebp - 8]
push eax
call fcn.00402dfe
add esp, 4
mov ecx, dword [ebp - 0x8848]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret