Function at 0x412630
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 [0x46fb34]
push 0xa
lea ecx, [ebp - 0x5c]
mov ebx, eax
call fcn.00428a45
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.00402470
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b8a0
add esp, 8
cmp eax, 3
je 0x4126ec
lea ecx, [ebp - 0x1c]
push str._WriteXml__Invalid_arguments__nArg_3_:
push ecx
lea ecx, [ebp + 8]
call fcn.00402290
mov edi, dword [eax]
xor esi, esi
add esp, 8
cmp edi, esi
jne 0x4126a4
mov dword [ebp - 0xc], esi
jmp 0x4126d2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4126ba
mov dword [ebp - 0xc], esi
jmp 0x4126d2
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x68]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x68]
push eax
call fcn.0043e342
push 0
lea ecx, [ebp - 0x5c]
call fcn.00428a21
test eax, eax
jne 0x4126ff
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov edi, eax
add esp, 4
add edi, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412a94
push 1
lea ecx, [ebp - 0x5c]
call fcn.00428a21
test eax, eax
jne 0x412735
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
mov esi, eax
add esp, 4
add esi, 0x10
push 2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x24], esi
call fcn.00428a21
test eax, eax
jne 0x41275f
jmp fcn.00423abe
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.00402470
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.0043be07
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
jne 0x4127b7
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4127af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x412a7b
push eax
lea ecx, [ebp - 0x40]
call fcn.00428146
call fcn.0042190e
test eax, eax
jne 0x4127d3
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.0042190e
test eax, eax
jne 0x4127f7
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x4620d0
lea ecx, [ebp - 0x10]
push 0x4620d4
add eax, 0x10
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], eax
call fcn.00402290
add esp, 8
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.004021b0
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 0x41284b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4620d0
lea ecx, [ebp - 0x10]
push 0x4620d8
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402290
add esp, 8
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.004021b0
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 0x412890
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.004286a6
test eax, eax
je 0x4129af
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x412979
mov ecx, dword [ebp - 8]
cmp dword [ecx - 0xc], 0
jl 0x41297c
push eax
push ecx
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x412979
mov ecx, dword [ebp - 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41297c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41297c
cmp dword [ecx - 0xc], 0
jl 0x41297c
push eax
push ecx
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x412979
mov ecx, dword [ebp - 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41297c
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.00414500
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00414500
add esp, 0xc
push eax
lea ecx, [ebp - 8]
call fcn.004029d0
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 0x41295a
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 0x412979
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.00407e20
push 1
push 0x461e60
lea ecx, [ebp - 0xc]
call fcn.00407e20
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004286a6
test eax, eax
jne 0x4128a4
mov esi, dword [ebp - 0xc]
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.00427591
lea ecx, [ebp - 0x40]
call fcn.0042850e
push esi
lea ecx, [ebp - 0x40]
call fcn.0042835f
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043bec9
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 0x4129f7
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 0x412a16
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 0x412a35
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 0x412a51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x40]
call fcn.00428573
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a75
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 0x412a94
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 0x412ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x5c]
call fcn.00428b7d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ad4
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.00439c98
mov esp, ebp
pop ebp
ret