Function at 0x10031b43
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058927
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10031bba
lea eax, [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x10031b97
push 0
push 0x1e70
push 0
call dword [sym.imp.GDI32.dll_GetRegionData]
jmp 0x10031bb5
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x10031bb5
push 0
call fcn.10031ebf
pop ecx
jmp 0x10031eae
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10031bf6
push 0xede
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
jmp 0x10031eae
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], 0x4423
mov dword [ebp - 0x5c], str.gcz_pebkwjwu_omt_ant_svnyegsyr_wbopbbp_wsvfork_bisxcglt
cmp dword [ebp - 0x40], 0x47ac
jle 0x10031ca4
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and dword [ebp - 0x28], 0
jmp 0x10031c3a
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5e12
jge 0x10031c99
and dword [ebp - 0x24], 0
jmp 0x10031c50
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x52c0
jge 0x10031c97
and dword [ebp - 0x2c], 0
jmp 0x10031c66
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x3c68
jge 0x10031c95
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sar eax, cl
mov ecx, dword [ebp - 0x2c]
sar eax, cl
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, 0x1006f958
call fcn.10009584
jmp 0x10031c5f
jmp 0x10031c49
jmp 0x10031c33
push 0x339
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
lea ecx, [ebp - 0xa8]
call fcn.1000951a
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0xfffffffd
mov dword [ebp - 0x1c], 0
jmp 0x10031cca
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffe3
je 0x10031dc3
mov dword [ebp - 0x88], 0xfffffffe
mov dword [ebp - 0x4c], 0x45c2f1fc
mov dword [ebp - 0x14], 0
jmp 0x10031cf5
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10031d0b
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x84], 1
jmp 0x10031cee
mov dword [ebp - 0x14], 0
jmp 0x10031d1b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10031d31
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x90], 0xfffa
jmp 0x10031d14
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x84], 0x1a
jmp 0x10031d5f
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x84]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x84], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x84], 0xf
jg 0x10031db6
mov dword [ebp - 0x18], 0x2fb5a5ef
mov dword [ebp - 0x18], 1
jmp 0x10031d86
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10031db4
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x90], 1
jg 0x10031da2
mov dword [ebp - 0x3c], 1
jmp 0x10031da6
and dword [ebp - 0x3c], 0
imul eax, dword [ebp - 0x3c], 0x451d
neg eax
mov dword [ebp - 0x4c], eax
jmp 0x10031d7f
jmp 0x10031d44
cmp dword [ebp - 0x1c], 0
je 0x10031dbe
jmp 0x10031dc3
jmp 0x10031cc3
push 0x545a
push 0x415d
push dword [ebp - 0x30]
push 0
lea eax, [ebp - 0xa8]
push eax
push 1
call fcn.1002d302
add esp, 0x18
and dword [ebp - 0x20], 0
jmp 0x10031df0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jae 0x10031e3c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
xor edx, edx
div dword [0x1006f230]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
movzx eax, byte [eax + edx]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
movzx eax, byte [ecx + eax]
push eax
call fcn.1002ac5b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.1001460f
jmp 0x10031de9
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.100145f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.100145e7
jmp 0x10031eae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret