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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7a37
mov eax, dword fs:[0]
push eax
sub esp, 0x76c
mov eax, dword [0x1011b3bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x4f8]
call fcn.100341f0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4f8]
call fcn.1003c070
lea ecx, [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.1002b150
mov byte [ebp - 4], 1
mov dword [ebp - 0x72c], 0
mov dword [ebp - 0x730], 0
call fcn.10036cb0
push eax
lea ecx, [ebp - 0x94]
call fcn.1002b150
mov byte [ebp - 4], 2
call fcn.10036cc0
mov ecx, eax
call fcn.1002c200
movzx edx, al
test edx, edx
je 0x100478b9
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.1002b670
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
lea ecx, [ebp - 0x94]
call fcn.1002b560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0xffffffff
jne 0x100477df
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
push 0
mov ecx, dword [ebp - 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x10047811
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
mov dword [ebp - 0x744], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x758], eax
mov eax, dword [ebp - 0x758]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x744]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x738]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x738]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x744]
cmp eax, dword [ebp - 0x730]
je 0x100478b4
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x75c], ecx
mov edx, dword [ebp - 0x75c]
push edx
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x72c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
jmp 0x10047b3b
call fcn.10036cc0
push eax
lea ecx, [ebp - 0x94]
call fcn.1002b670
mov dword [ebp - 0x734], 0
call fcn.100371b0
movzx eax, al
test eax, eax
je 0x100478f0
call fcn.10036cd0
mov dword [ebp - 0x734], eax
jmp 0x10047975
call fcn.10036ce0
push eax
lea ecx, [ebp - 0x220]
call fcn.1002b150
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.1002b560
push eax
call fcn.1003f980
add esp, 8
mov dword [ebp - 0x740], eax
mov ecx, dword [ebp - 0x740]
push ecx
lea ecx, [ebp - 0x94]
call fcn.1002b560
push eax
call fcn.1006b950
add esp, 8
mov dword [ebp - 0x734], eax
cmp dword [ebp - 0x740], 0
je 0x10047966
mov edx, dword [ebp - 0x740]
mov dword [ebp - 0x760], edx
mov eax, dword [ebp - 0x760]
push eax
call fcn.100bef31
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.1002b330
cmp dword [ebp - 0x734], 0
jne 0x10047992
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
mov dword [ebp - 0x748], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.1002b150
mov byte [ebp - 4], 4
push 0x100ebcb8
push 0x101057f4
lea ecx, [ebp - 0x118]
call fcn.1002c5f0
lea edx, [ebp - 0x728]
push edx
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.1002b560
push eax
mov ecx, dword [ebp - 0x734]
push ecx
call fcn.1006ac40
add esp, 0x14
test eax, eax
je 0x10047a19
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.1002b330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x730], edx
cmp dword [ebp - 0x730], 0
jne 0x10047a51
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.1002b330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
mov eax, dword [ebp - 0x730]
push eax
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x764], eax
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x72c], ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x748]
push ecx
mov edx, dword [ebp - 0x734]
push edx
call fcn.1006c1e0
add esp, 0x10
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0x10047b11
cmp dword [ebp - 0x74c], 0x600
je 0x10047b11
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x72c], 0
call fcn.100371b0
movzx edx, al
test edx, edx
jne 0x10047af1
mov eax, dword [ebp - 0x734]
push eax
call fcn.1006a860
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.1002b330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
jmp 0x10047b52
call fcn.100371b0
movzx ecx, al
test ecx, ecx
jne 0x10047b2c
mov edx, dword [ebp - 0x734]
push edx
call fcn.1006a860
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.1002b330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.1002b330
xor eax, eax
jne 0x1004775a
cmp dword [ebp - 0x72c], 0
jne 0x10047c50
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
lea ecx, [ebp - 0x19c]
call fcn.1002b560
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp dword [ebp - 0x73c], 0xffffffff
jne 0x10047b97
jmp 0x10047c50
push 0
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x730], eax
cmp dword [ebp - 0x730], 0
jne 0x10047bba
jmp 0x10047c50
mov dword [ebp - 0x750], 0
mov edx, dword [ebp - 0x730]
push edx
call fcn.100bf593
add esp, 4
mov dword [ebp - 0x76c], eax
mov eax, dword [ebp - 0x76c]
mov dword [ebp - 0x72c], eax
push 0
lea ecx, [ebp - 0x750]
push ecx
mov edx, dword [ebp - 0x730]
push edx
mov eax, dword [ebp - 0x72c]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x73c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x750]
cmp eax, dword [ebp - 0x730]
je 0x10047c49
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x770], ecx
mov edx, dword [ebp - 0x770]
push edx
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x72c], 0
jmp 0x10047c50
mov dword [ebp - 0x754], 0
cmp dword [ebp - 0x72c], 0
je 0x10047ca4
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x72c]
push ecx
call fcn.100475d0
add esp, 8
mov dword [ebp - 0x754], eax
mov edx, dword [ebp - 0x72c]
mov dword [ebp - 0x774], edx
mov eax, dword [ebp - 0x774]
push eax
call fcn.100bef31
add esp, 4
mov dword [ebp - 0x72c], 0
mov ecx, dword [ebp - 0x754]
mov dword [ebp - 0x778], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x19c]
call fcn.1002b330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.10029810
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100be7ca
mov esp, ebp
pop ebp
ret