Function at 0x10012180
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f7ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10012202
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb4], eax
push 0x3af5
push dword [ebp - 0xb4]
push 0x73a8
push 1
push 0x3da8
push 0x864
push dword [ebp - 0xcc]
push 0x4ae5
push 0x60e6
push 0xc77
push 0x62a
call fcn.1001260a
add esp, 0x2c
jmp 0x100125f9
lea eax, [ebp + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x10012295
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
movzx eax, byte [eax]
test eax, eax
je 0x10012290
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100125f9
mov dword [ebp - 0x58], 0x2701
mov dword [ebp - 0xbc], 0x10008040
cmp dword [ebp - 0x58], 0x29e0
jle 0x10012308
and dword [ebp - 0x24], 0
jmp 0x100122bc
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x28dc
jge 0x10012308
and dword [ebp - 0x20], 0
jmp 0x100122d2
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4bc8
jge 0x10012306
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
mov ecx, 0x10607df8
call fcn.1002c3bf
jmp 0x100122cb
jmp 0x100122b5
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x25a6
jge 0x1001232e
mov edx, dword [ebp - 0xbc]
mov ecx, 0x10607df8
call fcn.1002de69
jmp 0x1001234a
or dword [ebp - 4], 0xffffffff
jmp 0x10012354
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], eax
push 0xfffffffffffffffb
pop eax
test eax, eax
je 0x100125d9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x100125ce
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xf6872920
mov eax, 0xf6872920
cmp eax, 0xfffffffd
je 0x1001244a
mov dword [ebp - 0x28], 1
jmp 0x1001244e
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jl 0x10012471
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x10012471
mov dword [ebp - 0x40], 1
jmp 0x10012475
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jne 0x100124aa
mov dword [ebp - 0x38], 1
jmp 0x100124ae
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x100124c1
mov dword [ebp - 0x48], 1
jmp 0x100124c5
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
je 0x100124d8
mov dword [ebp - 0x68], 1
jmp 0x100124dc
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
cmp dword [ebp - 0x68], eax
jge 0x100124f2
mov dword [ebp - 0x50], 1
jmp 0x100124f6
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
jg 0x10012509
mov dword [ebp - 0x60], 1
jmp 0x1001250d
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
ja 0x1001251c
mov dword [ebp - 0x3c], 1
jmp 0x10012520
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xb25
je 0x10012532
mov dword [ebp - 0x44], 1
jmp 0x10012536
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
sub ecx, 8
cmp ecx, dword [eax]
je 0x1001254c
mov dword [ebp - 0x4c], 1
jmp 0x10012550
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
add eax, 0x494f
je 0x1001256c
mov eax, 0x8394
test eax, eax
je 0x1001256c
mov dword [ebp - 0x54], 1
jmp 0x10012570
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x54]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jl 0x10012592
mov dword [ebp - 0x5c], 1
jmp 0x10012596
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
jge 0x100125b8
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x100125b8
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x100125b8
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x100125ce
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x100125ce
or eax, 0xffffffff
je 0x100125ce
mov dword [ebp - 0x64], 1
jmp 0x100125d2
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
neg eax
jne 0x100125e7
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x100125e7
and dword [ebp - 0x6c], 0
jmp 0x100125ee
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret