Function at 0x10002210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f27d
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x10018004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.dll_1
mov edx, 0x10015a14
mov dword [ebp - 0x1d0], str.cs.blob
lea ecx, [ebp - 0x160]
call fcn.10001ee0
add esp, 4
mov dword [ebp - 4], 0
mov edx, str.Func
lea ecx, [ebp - 0x148]
push str.vu_24
call fcn.10001ee0
add esp, 4
mov byte [ebp - 4], 1
mov edx, str.Func
lea ecx, [ebp - 0x130]
push str.vp_24
call fcn.10001ee0
add esp, 4
mov byte [ebp - 4], 2
mov edx, str.Func
lea ecx, [ebp - 0x1ac]
push str.cf_24
call fcn.10001ee0
add esp, 8
mov byte [ebp - 4], 3
lea esi, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x160]
cmovae esi, dword [ebp - 0x130]
cmp dword [ebp - 0x14c], 0x10
cmovae eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push eax
call edi
cmp dword [ebp - 0x134], 0x10
lea esi, [ebp - 0x148]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x1b4], eax
cmovae esi, dword [ebp - 0x148]
cmp dword [ebp - 0x14c], 0x10
cmovae ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x118], 0x1000
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x1b0], 0
lea edx, [ebp - 0x114]
push dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1cc]
call fcn.10003030
add esp, 4
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1cc]
call fcn.10001b80
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 8
jb 0x100023c8
mov edx, dword [ebp - 0x1cc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100023be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000273e
push ecx
push edx
call fcn.100034e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 0x1b0], al
lea edx, [ebp - 0x1d0]
push dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1b8], 7
mov word [ebp - 0x1cc], ax
call fcn.10003070
lea eax, [ebp - 0x1e8]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x194]
lea ecx, [ebp - 0x178]
call fcn.10001d20
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1d4]
cmp ecx, 8
jb 0x10002465
mov edx, dword [ebp - 0x1e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000245b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002743
push ecx
push edx
call fcn.100034e7
add esp, 8
push 0x40
push 0x1000
xor eax, eax
mov dword [ebp - 0x1d8], 0
push 0x100000
push eax
mov dword [ebp - 0x1d4], 7
mov word [ebp - 0x1e8], ax
call esi
mov esi, eax
test esi, esi
je 0x1000256c
push ecx
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x178]
call fcn.100027f0
cmp dword [ebp - 0x1b8], 0x10
lea eax, [ebp - 0x1cc]
push 0
cmovae eax, dword [ebp - 0x1cc]
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x1b8]
mov edi, eax
cmp ecx, 0x10
jb 0x10002514
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000250a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002748
push ecx
push edx
call fcn.100034e7
add esp, 8
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0xf
mov byte [ebp - 0x1cc], 0
cmp edi, 0xffffffff
je 0x1000256c
push 0
lea eax, [ebp - 0x118]
push eax
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000256c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x17c]
push eax
push 0x40
push 0x100000
push esi
call dword [ebp - 0x1b4]
call esi
mov ecx, dword [ebp - 0x164]
cmp ecx, 8
jb 0x100025ac
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100025a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0x180]
xor eax, eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
cmp ecx, 8
jb 0x10002609
mov edx, dword [ebp - 0x194]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100025ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0x198]
cmp ecx, 0x10
jb 0x10002643
mov edx, dword [ebp - 0x1ac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002639
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x1000267d
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002673
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp ecx, 0x10
jb 0x100026d2
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100026c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
cmp ecx, 0x10
jb 0x10002723
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002719
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000274d
push ecx
push edx
call fcn.100034e7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100034d9
mov esp, ebp
pop ebp
ret
call fcn.1000676c
call fcn.1000676c
call fcn.1000676c
call fcn.1000676c
int3