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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1208a518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.12034480
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 4]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 8], 0x20000
jb 0x1203610d
mov byte [ebp - 0x11], 0
mov eax, dword [0x120b3180]
mov dword [ebp - 0x18], eax
lea edi, [ebx + 0x54]
push 0x5c
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1206c0ef
xor esi, esi
cmp eax, esi
jl 0x12036151
inc eax
lea ecx, [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.1206c021
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.12073aa3
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1207396a
push str.bc.gcf
lea ecx, [ebp - 0x18]
call fcn.12073d46
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x1c5]
push edx
call fcn.12046a10
mov ecx, dword [ebx + 0x1c5]
call fcn.12046340
mov al, byte [ebp + 0x14]
mov edi, dword [ebp + 8]
mov byte [ebx + 0x1bc], al
mov byte [ebp + 0x17], 0
mov dword [ebp - 0x3c], 0xbaddeed
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
jmp 0x1203619f
xor esi, esi
mov edx, dword [edi]
lea eax, [ebp - 0x3c]
push 0x14
push eax
mov ecx, edi
call dword [edx + 0x34]
cmp eax, esi
je 0x1203639d
mov al, byte [ebp + 0x17]
test al, al
jne 0x1203639d
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0xbaddeed
mov byte [ebp + 0xf], 1
jne 0x12036390
cmp dword [ebp - 0x2c], 0xfa00
ja 0x12036390
mov eax, dword [ebp - 0x34]
cmp eax, 1
jne 0x120362b1
mov eax, dword [0x120b3180]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3c]
push ecx
push edx
push edi
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.12035720
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov ecx, ebx
call fcn.12034c90
test al, al
je 0x12036227
mov byte [ebp + 0xf], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1207396a
mov al, byte [ebp + 0xf]
test al, al
je 0x1203619f
mov al, byte [ebx + 0x1bc]
test al, al
jne 0x1203619f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1207403b
mov esi, eax
add esp, 4
test esi, esi
je 0x1203619d
mov eax, dword [ebp - 0x24]
mov edx, dword [edi]
push 0
push eax
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edi]
push eax
push esi
mov ecx, edi
call dword [edx + 0x34]
mov edx, dword [ebx + 0x135]
lea edi, [ebx + 0x135]
lea eax, [ebp - 0x3c]
push 0x14
push eax
mov ecx, edi
call dword [edx + 0x38]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edi]
push eax
push esi
mov ecx, edi
call dword [edx + 0x38]
push esi
call fcn.12074064
mov edi, dword [ebp + 8]
add esp, 4
xor esi, esi
jmp 0x1203619f
cmp eax, 2
jne 0x120362e2
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x3c]
push edx
push eax
push edi
mov ecx, ebx
call fcn.12035760
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push ecx
push edx
mov ecx, ebx
call fcn.12035080
test al, al
je 0x1203623e
jmp 0x1203619f
cmp eax, 3
jne 0x12036316
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push edi
mov ecx, ebx
mov dword [ebp + 0xc], esi
call fcn.12035780
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push edx
push eax
mov ecx, ebx
call fcn.12035450
test al, al
je 0x1203623e
jmp 0x1203619f
cmp eax, 4
jne 0x1203634a
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x3c]
push ecx
push edx
push edi
mov ecx, ebx
mov dword [ebp + 0xc], esi
call fcn.12035870
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov ecx, ebx
call fcn.12035500
test al, al
je 0x1203623e
jmp 0x1203619f
cmp eax, 7
jne 0x1203637e
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x3c]
push edx
push eax
push edi
mov ecx, ebx
mov dword [ebp + 0xc], esi
call fcn.12035900
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push ecx
push edx
mov ecx, ebx
call fcn.12035570
test al, al
je 0x1203623e
jmp 0x1203619f
cmp eax, 5
jne 0x1203623e
mov byte [ebp - 0x11], 1
jmp 0x1203619f
mov byte [ebp - 0x11], 0
mov byte [ebp + 0x17], 1
jmp 0x1203619f
mov ecx, dword [ebx + 0x11d]
mov eax, 1
cmp ecx, eax
jae 0x120363b2
mov dword [ebx + 0x11d], eax
cmp dword [ebx + 0x14], esi
jne 0x120363c5
mov ecx, dword [ebx + 0x111]
push ecx
mov ecx, ebx
call fcn.1203a950
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push eax
push edx
call fcn.1203fd50
add esp, 0xc
cmp eax, esi
jne 0x120363e0
mov byte [ebp - 0x11], 0
jmp 0x120363f1
mov al, byte [ebp - 0x11]
test al, al
je 0x120363f1
mov al, byte [ebx + 0x1bc]
test al, al
je 0x12036407
mov ecx, dword [ebx + 0x16e]
cmp ecx, esi
je 0x12036401
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x16e], esi
mov al, byte [ebp - 0x11]
test al, al
je 0x12036770
mov eax, dword [ebx + 0x1c5]
mov eax, dword [eax + 8]
cmp dword [eax - 8], esi
je 0x12036439
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x12036439
mov ecx, dword [ebx + 0x1c5]
call fcn.12046bd0
jmp 0x1203644d
mov ecx, dword [ebx + 0x1c5]
cmp dword [ecx + 0x1c], esi
je 0x1203644d
mov eax, dword [ecx + 8]
push eax
call fcn.12046be0
mov al, byte [ebx + 0x1bc]
test al, al
jne 0x1203675e
cmp dword [ebx + 0x17e], esi
jne 0x12036722
cmp dword [ebx + 0x16e], esi
je 0x12036740
mov ecx, ebx
call fcn.1203ada0
mov ecx, dword [ebx + 0x109]
mov eax, dword [ebx + 0x16e]
shr ecx, 5
and ecx, 1
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 0x50]
je 0x12036499
or ecx, 1
jmp 0x1203649c
and ecx, 0xfffffffe
mov dword [eax + 0x50], ecx
mov edx, dword [ebx + 0x109]
mov eax, dword [ebx + 0x16e]
shr edx, 0xb
mov ecx, dword [eax + 0x50]
and edx, 1
mov dword [ebp + 0x14], edx
je 0x120364be
or ecx, 2
jmp 0x120364c1
and ecx, 0xfffffffd
mov dword [eax + 0x50], ecx
mov eax, dword [ebx + 0x109]
shr eax, 0xc
and eax, 1
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x16e]
mov ecx, dword [eax + 0x50]
je 0x120364e3
or ecx, 4
jmp 0x120364e6
and ecx, 0xfffffffb
mov dword [eax + 0x50], ecx
mov ecx, dword [ebx + 0x109]
mov eax, dword [ebx + 0x16e]
shr ecx, 0x14
not cl
and ecx, 1
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax + 0x50]
jne 0x1203650a
or ecx, 0x10
jmp 0x1203650d
and ecx, 0xffffffef
mov dword [eax + 0x50], ecx
mov edx, dword [ebx + 0x109]
mov eax, dword [ebx + 0x16e]
shr edx, 0x15
mov ecx, dword [eax + 0x50]
not dl
and edx, 1
mov dword [ebp + 0x14], edx
je 0x12036531
or ecx, 0x20
jmp 0x12036534
and ecx, 0xffffffdf
mov dword [eax + 0x50], ecx
mov eax, dword [ebx + 0x109]
shr eax, 0x12
not al
and eax, 1
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x16e]
mov ecx, dword [eax + 0x50]
je 0x12036558
or ecx, 8
jmp 0x1203655b
and ecx, 0xfffffff7
mov dword [eax + 0x50], ecx
mov ecx, dword [ebx + 0x17e]
mov eax, dword [ebx + 0x17a]
mov edi, ecx
mov dword [ebp + 0x14], edi
inc edi
test edi, edi
jne 0x120365b0
test eax, eax
je 0x1203659d
mov edx, ecx
dec ecx
test edx, edx
je 0x12036584
add eax, 4
jmp 0x12036578
mov eax, dword [ebx + 0x17a]
push eax
call fcn.12074064
add esp, 4
mov dword [ebx + 0x17a], 0
xor eax, eax
mov dword [ebx + 0x182], eax
mov dword [ebx + 0x17e], eax
jmp 0x1203670c
test eax, eax
jne 0x12036607
lea esi, [edi*4]
push esi
call fcn.1207403b
mov edx, eax
mov ecx, esi
mov dword [ebx + 0x17a], eax
mov dword [ebp + 8], edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x120365f0
add edx, 4
jmp 0x120365e4
mov edx, dword [ebp + 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x182], eax
mov dword [ebx + 0x17e], eax
jmp 0x1203670c
mov esi, dword [ebx + 0x182]
cmp edi, esi
jg 0x12036652
cmp ecx, edi
jge 0x12036630
mov edx, edi
lea esi, [eax + ecx*4]
sub edx, ecx
xor eax, eax
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, edx
dec edx
test eax, eax
je 0x12036643
add esi, 4
jmp 0x12036624
jle 0x12036643
sub ecx, edi
lea edi, [eax + edi*4]
mov edx, ecx
dec ecx
test edx, edx
je 0x12036643
add edi, 4
jmp 0x12036637
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebx + 0x17e], eax
jmp 0x1203670c
mov eax, dword [ebx + 0x186]
test eax, eax
jne 0x1203667f
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x12036673
mov eax, 4
jmp 0x1203667f
cmp eax, 0x400
jle 0x1203667f
mov eax, 0x400
add eax, esi
cmp edi, eax
jl 0x12036687
mov eax, edi
lea ecx, [eax*4]
mov dword [ebp + 0xc], eax
push ecx
call fcn.1207403b
mov ecx, dword [ebx + 0x17e]
mov esi, dword [ebx + 0x17a]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0x14]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x17e]
inc edx
sub edx, ecx
mov dword [ebp + 8], eax
lea esi, [eax + ecx*4]
mov ecx, edx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, edx
dec edx
test eax, eax
je 0x120366df
add esi, 4
jmp 0x120366d3
mov eax, dword [ebx + 0x17a]
push eax
call fcn.12074064
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebx + 0x17a], ecx
lea eax, [edx + 1]
mov dword [ebx + 0x17e], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x182], eax
mov ecx, dword [ebx + 0x17a]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx + 0x16e]
xor esi, esi
mov dword [ecx + eax*4], edx
jmp 0x12036740
mov ecx, dword [ebx + 0x16e]
cmp ecx, esi
je 0x12036740
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebx + 0x17a]
mov ecx, dword [eax]
mov dword [ebx + 0x16e], ecx
mov edx, dword [ebx + 0x60]
push edx
call fcn.1203cb60
add esp, 4
cmp eax, esi
setne al
mov ecx, ebx
mov byte [ebx + 0x16d], al
call fcn.12039bf0
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, ebx
call fcn.120367c0
mov ecx, ebx
call fcn.12036aa0
mov ecx, ebx
call fcn.1203a260
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.1207396a
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14