Function at 0x4128e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x46e780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x46fb44]
push 0xa
lea ecx, [ebp - 0x5c]
mov ebx, eax
call fcn.00428c5c
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov dword [ebp - 0x14], eax
call fcn.00402490
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040bb40
add esp, 8
cmp eax, 3
je 0x41299c
lea ecx, [ebp - 0x1c]
push str._WriteXml__Invalid_arguments__nArg_3_:
push ecx
lea ecx, [ebp + 8]
call fcn.004022b0
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x412954
mov dword [ebp - 0xc], esi
jmp 0x412982
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x41296a
mov dword [ebp - 0xc], esi
jmp 0x412982
lea esi, [eax + eax]
mov eax, esi
call fcn.004411d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408520
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x68]
call fcn.0043a782
push 0x468880
lea eax, [ebp - 0x68]
push eax
call fcn.0043e4e2
push 0
lea ecx, [ebp - 0x5c]
call fcn.00428c38
test eax, eax
jne 0x4129af
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
mov edi, eax
add esp, 4
add edi, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412d44
push 1
lea ecx, [ebp - 0x5c]
call fcn.00428c38
test eax, eax
jne 0x4129e5
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
mov esi, eax
add esp, 4
add esi, 0x10
push 2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], esi
call fcn.00428c38
test eax, eax
jne 0x412a0f
jmp fcn.00423c33
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402490
push str.r_ccsUTF_8
mov ebx, eax
lea ecx, [ebp - 0x18]
push edi
add ebx, 0x10
push ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], 0
call fcn.0043bfad
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
jne 0x412a67
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x412d2b
push eax
lea ecx, [ebp - 0x40]
call fcn.00426798
call fcn.00421a7e
test eax, eax
jne 0x412a83
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
add esi, 0x10
mov dword [ebp - 0xc], esi
call fcn.00421a7e
test eax, eax
jne 0x412aa7
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x462288
lea ecx, [ebp - 0x10]
push 0x46228c
add eax, 0x10
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], eax
call fcn.004022b0
add esp, 8
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.004021d0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412afb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x462288
lea ecx, [ebp - 0x10]
push 0x462290
push ecx
lea ecx, [ebp - 0x24]
call fcn.004022b0
add esp, 8
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.004021d0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00426cfd
test eax, eax
je 0x412c5f
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x412c29
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], 0
jl 0x412c2c
push eax
push ecx
call fcn.0043a895
add esp, 8
test eax, eax
je 0x412c29
mov ecx, dword [ebp - 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x412c2c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x412c2c
cmp dword [ecx - 0xc], 0
jl 0x412c2c
push eax
push ecx
call fcn.0043a895
add esp, 8
test eax, eax
je 0x412c29
mov ecx, dword [ebp - 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x412c2c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004147b0
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004147b0
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.004029f0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0xc]
push edx
push ecx
lea ecx, [ebp - 0xc]
call fcn.004080c0
push 1
push 0x462020
lea ecx, [ebp - 0xc]
call fcn.004080c0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00426cfd
test eax, eax
jne 0x412b54
mov esi, dword [ebp - 0xc]
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0042592e
lea ecx, [ebp - 0x40]
call fcn.00426b65
push esi
lea ecx, [ebp - 0x40]
call fcn.004269b6
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043c06f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x40]
call fcn.00426bca
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x5c]
call fcn.00428d94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x74]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e3e
mov esp, ebp
pop ebp
ret