Function at 0x1002db20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102f53d2
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x81c], ecx
call fcn.100c3b5c
push 0x100
lea ecx, [ebp - 0x178]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x178]
push 0x5c
push eax
call fcn.102a1020
lea ecx, [ebp - 0x178]
add esp, 8
lea edx, [ecx + 1]
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002db90
mov ax, word [0x10320aec]
sub ecx, edx
movq xmm0, qword [str.SHARE.INI]
movq qword [ebp + ecx - 0x178], xmm0
mov word [ebp + ecx - 0x170], ax
mov al, byte [0x10320aee]
mov byte [ebp + ecx - 0x16e], al
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x7fc]
call fcn.10008060
push 0x10320af0
lea ecx, [ebp - 0x7fc]
call fcn.10008160
push 0
push 0x10320af8
lea ecx, [ebp - 0x7fc]
call fcn.10007e40
push 0
mov ebx, eax
lea ecx, [ebp - 0x7fc]
push 0x10320afc
mov dword [ebp - 0x824], ebx
call fcn.10007e40
push 0x1031b50e
push 0x103c9fc4
push 0x1031f318
lea ecx, [ebp - 0x7fc]
mov dword [0x103ca01c], eax
call fcn.10007ec0
push 0x1031b50e
push 0x103c9fec
push 0x10320b04
lea ecx, [ebp - 0x7fc]
call fcn.10007ec0
cmp dword [0x103ca01c], 0
je 0x1002dc68
mov dword [0x103c977c], 1
mov dword [0x103c9774], 1
mov eax, 1
mov dword [ebp - 0x820], eax
cmp ebx, eax
jl 0x1002e259
nop dword [eax + eax]
push eax
lea eax, [ebp - 0x20]
push str.Reg_d
push eax
call fcn.100029e0
add esp, 0xc
lea eax, [ebp - 0x378]
lea ecx, [ebp - 0x7fc]
push 0x1031b50e
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10007ec0
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x828], edi
mov dword [ebp - 4], 1
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x804], eax
mov byte [ebp - 4], 3
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x800], eax
mov byte [ebp - 4], 5
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 7
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x810], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x378]
push 0x2c
push 0
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100ceba1
push 0x2c
push 1
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.100ceba1
push 0x2c
push 2
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.100ceba1
push 0x2c
push 3
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.100ceba1
mov eax, dword [ebp - 0x804]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x808], 0
mov esi, dword [eax - 0xc]
test esi, esi
js 0x1002e275
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1002ddf9
push esi
lea ecx, [ebp - 0x804]
call fcn.10003170
mov eax, dword [ebp - 0x804]
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x3f8]
push ecx
push eax
call fcn.10026010
push dword [ebp - 0x810]
call fcn.102bcab8
push dword [ebp - 0x800]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x58
mov dword [ebp - 0x818], eax
call fcn.100be9f0
mov ecx, eax
shr eax, 0x10
shr ecx, 0x18
push ecx
movzx eax, al
push eax
lea eax, [ebp - 0x50]
push str.CAL__2.2d__2.2d
push eax
call fcn.100029e0
add esp, 0x28
cmp dword [0x103c9778], 0
je 0x1002de79
push dword [case.0x10063695.95]
lea eax, [ebp - 0x50]
push eax
push str._s_INIT_02d
push eax
call fcn.100029e0
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
push 0x103c91c8
lea eax, [ebp - 0x4f8]
push str._s_s_
push eax
call fcn.100029e0
add esp, 0x10
lea ecx, [ebp - 0x848]
call fcn.100cedce
mov byte [ebp - 4], 0xa
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x82c], esi
mov byte [ebp - 4], 0xc
xor eax, eax
nop dword [eax + eax]
mov cl, byte [ebp + eax - 0x4f8]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x279], cl
test cl, cl
jne 0x1002ded0
lea ecx, [ebp - 0x278]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002def0
mov eax, dword [str.dark.raw]
mov dword [ecx], eax
mov eax, dword [0x1031bd14]
mov dword [ecx + 4], eax
mov al, byte [0x1031bd18]
mov byte [ecx + 8], al
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x4f8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x279], al
test al, al
jne 0x1002df30
lea ecx, [ebp - 0x278]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002df50
mov eax, dword [str.bpm.raw]
mov dword [ecx], eax
mov eax, dword [0x1031c218]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x4f8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x5f9], al
test al, al
jne 0x1002df80
lea ecx, [ebp - 0x5f8]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002dfa0
mov eax, dword [str.A________.raw]
mov dword [ecx], eax
mov eax, dword [0x1031bd58]
mov dword [ecx + 4], eax
mov eax, dword [0x1031bd5c]
mov dword [ecx + 8], eax
mov ax, word [0x1031bd60]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x5f8]
push 0
push eax
lea ecx, [ebp - 0x848]
call fcn.100cf0b3
xor ecx, ecx
test eax, eax
setne cl
test ebx, ebx
je 0x1002dff8
mov dword [ebp - 0x808], 0x4f
test ecx, ecx
jne 0x1002e002
mov dword [ebp - 0x808], 0x58
mov eax, dword [ebp - 0x800]
mov ebx, dword [eax - 0xc]
test ebx, ebx
js 0x1002e275
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x1002e036
push ebx
lea ecx, [ebp - 0x800]
call fcn.10003170
mov eax, dword [ebp - 0x800]
lea edx, [ebp - 0x78]
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1002e040
lea eax, [ebp - 0x78]
push eax
call fcn.100be9f0
add esp, 4
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
call dword [0x103c8e0c]
mov edx, eax
mov eax, dword [ebp - 0x81c]
push 0xc8
push 0x1c
lea ecx, [eax + 0x17d0]
mov byte [ecx], 0xff
mov dword [eax + 0x17c0], edx
mov byte [eax + 0x17d1], 0
mov byte [eax + 0x17d3], 0
mov dword [eax + 0x17d4], 0
add eax, 0x174c
push eax
push ecx
push 0
push 0
push ebx
push edx
call dword [0x103c8e20]
mov ecx, dword [ebp - 0x81c]
mov eax, dword [ecx + 0x17c0]
mov ebx, dword [ecx + 0x1750]
test eax, eax
je 0x1002e0d1
push eax
call dword [0x103c8e1c]
call fcn.100c32b9
test eax, eax
je 0x1002e27f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x80c], eax
mov byte [ebp - 4], 0xe
test ebx, ebx
mov ecx, 0x4f
mov eax, 0x58
cmove eax, ecx
push eax
push dword [ebp - 0x818]
lea eax, [ebp - 0x3f8]
push dword [ebp - 0x814]
push dword [ebp - 0x808]
push dword [ebp - 0x800]
push eax
push dword [ebp - 0x804]
lea eax, [ebp - 0x80c]
push str._s__s__s__c__s__c__c
push eax
call fcn.10002d90
add esp, 0x24
lea eax, [ebp - 0x80c]
mov ecx, 0x103ca020
push eax
call fcn.100e148e
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x80c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e16e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e18a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x848]
call fcn.100cef95
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x810]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e1bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e1dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x800]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e1ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x804]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e221
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e240
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
inc eax
mov dword [ebp - 0x820], eax
cmp eax, dword [ebp - 0x824]
jle 0x1002dc80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10002bc0
push 0x80004005
call fcn.10002bc0
int3