Function at 0x1003862f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100599c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10038781
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x10038725
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call fcn.1002ee4d
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0xb8]
call fcn.10004a6c
and dword [ebp - 4], 0
push 1
push 0x45dd
push 0x67dd
push 0x3cfd
push 0x1496
lea eax, [ebp - 0xb8]
push eax
push 0x6406
push 1
push 0x6525
push 1
push 0x5704
push 0x65a6
push dword [ebp - 0x38]
lea eax, [ebp - 0x9c]
push eax
call fcn.10037f9a
add esp, 0x38
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.100393c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.10004a58
jmp 0x100389cd
mov dword [ebp - 0x18], 0
jmp 0x10038735
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1003874b
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xcc], 0xfffffffc
jmp 0x1003872e
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x10038762
push 0xeb5
call dword [sym.imp.USER32.dll_IsWindow]
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp + ecx - 0xcc], eax
jmp 0x100389cd
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x10038888
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1003882f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jle 0x10038883
mov dword [ebp - 0x28], 0x6b9dd952
lea eax, [ebp - 0x28]
push eax
push 0
push 0x42e0
push dword [ebp - 0x7c]
push 0x5225
push dword [ebp - 0x84]
push dword [ebp - 0x50]
push dword [ebp - 0x14]
call fcn.1003241c
add esp, 0x20
push dword [ebp - 0x50]
push dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
push eax
push 0
push 0x66ac
call fcn.1002ef8e
add esp, 0x14
jmp 0x10038824
jmp 0x100389cd
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x20], 0xdf3d37a5
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x44], 0xfd43ddca
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x1c], 0
jmp 0x100388be
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x100388d1
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x5c], 0xffff
jmp 0x100388b7
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x100388e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x20], 0x72d9ee1c
cmp dword [ebp - 0x20], 0
jne 0x10038945
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x20], eax
je 0x1003891e
mov dword [ebp - 0x34], 1
jmp 0x10038922
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x34], eax
je 0x10038933
mov dword [ebp - 0x40], 1
jmp 0x10038937
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x40], eax
jle 0x10038945
and dword [ebp - 0x2c], 0
jmp 0x1003894c
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
je 0x1003895d
mov dword [ebp - 0x30], 1
jmp 0x10038961
and dword [ebp - 0x30], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
cmp eax, dword [ebp - 0x30]
je 0x10038979
mov dword [ebp - 0x3c], 1
jmp 0x1003897d
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1003899f
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x5c], 0
je 0x1003899f
mov dword [ebp - 0x4c], 1
jmp 0x100389a3
and dword [ebp - 0x4c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x5c]
cmp dword [ebp - 0x4c], eax
jne 0x100389bd
xor eax, eax
inc eax
jne 0x100389bd
and dword [ebp - 0x54], 0
jmp 0x100389c4
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret