Function at 0x436800
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55def9
mov eax, dword fs:[0]
push eax
mov eax, 0x2954
call fcn.005343b0
mov eax, dword [0x5c49f0]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x295c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2800
lea eax, [ebp - 0x2890]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005369e0
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
push ecx
push dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x2890]
call fcn.004347c0
lea eax, [ebp - 0x28f8]
push eax
call fcn.00540776
add esp, 0x14
lea eax, [ebp - 0x28f8]
push eax
lea eax, [ebp - 0x291c]
push eax
call fcn.0053d56f
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005369e0
mov eax, dword [ebp - 0x290c]
add esp, 0x14
inc eax
push dword [ebp - 0x291c]
push dword [ebp - 0x2918]
push dword [ebp - 0x2914]
push dword [ebp - 0x2910]
push eax
mov eax, dword [ebp - 0x2908]
add eax, 0x76c
push eax
lea eax, [ebp - 0x90]
push str.__04d__02d__02d__02d:_02d:_02d_
push eax
call fcn.00439bd0
lea ecx, [ebp - 0x28c0]
call fcn.00434a10
lea eax, [ebp - 0x28c0]
mov byte [ebp - 4], 1
push eax
mov edx, 0x5b1974
lea ecx, [ebp - 0x2958]
call fcn.0042daa0
add esp, 0x24
push 0x5b1970
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2940]
call fcn.0042dbb0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28c0]
cmp eax, esi
je 0x43697e
mov eax, dword [ebp - 0x28ac]
cmp eax, 0x10
jb 0x436957
inc eax
lea ecx, [ebp - 0x28c0]
push eax
push dword [ebp - 0x28c0]
call fcn.0042ceb0
push esi
lea ecx, [ebp - 0x28c0]
mov dword [ebp - 0x28ac], 0xf
mov dword [ebp - 0x28b0], 0
mov byte [ebp - 0x28c0], 0
call fcn.0042c6f0
mov eax, dword [ebp - 0x292c]
cmp eax, 0x10
jb 0x43699c
inc eax
lea ecx, [ebp - 0x2940]
push eax
push dword [ebp - 0x2940]
call fcn.0042ceb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2944]
mov dword [ebp - 0x292c], 0xf
mov dword [ebp - 0x2930], 0
mov byte [ebp - 0x2940], 0
cmp eax, 0x10
jb 0x4369d9
inc eax
lea ecx, [ebp - 0x2958]
push eax
push dword [ebp - 0x2958]
call fcn.0042ceb0
push dword [ebp + 0x10]
lea eax, [ebp - 0x28a8]
push eax
call fcn.00436f20
lea eax, [ebp - 0x28a8]
mov byte [ebp - 4], 4
push eax
mov edx, 0x5b1974
lea ecx, [ebp - 0x2958]
call fcn.0042daa0
add esp, 4
push 0x5b1970
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2940]
call fcn.0042dbb0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28a8]
cmp eax, esi
je 0x436a70
mov eax, dword [ebp - 0x2894]
cmp eax, 0x10
jb 0x436a49
inc eax
lea ecx, [ebp - 0x28a8]
push eax
push dword [ebp - 0x28a8]
call fcn.0042ceb0
push esi
lea ecx, [ebp - 0x28a8]
mov dword [ebp - 0x2894], 0xf
mov dword [ebp - 0x2898], 0
mov byte [ebp - 0x28a8], 0
call fcn.0042c6f0
mov eax, dword [ebp - 0x292c]
cmp eax, 0x10
jb 0x436a8e
inc eax
lea ecx, [ebp - 0x2940]
push eax
push dword [ebp - 0x2940]
call fcn.0042ceb0
mov eax, dword [ebp - 0x2944]
mov dword [ebp - 0x292c], 0xf
mov dword [ebp - 0x2930], 0
mov byte [ebp - 0x2940], 0
cmp eax, 0x10
jb 0x436ac7
inc eax
lea ecx, [ebp - 0x2958]
push eax
push dword [ebp - 0x2958]
call fcn.0042ceb0
mov dword [ebp - 0x28c4], 0xf
mov dword [ebp - 0x28c8], 0
mov byte [ebp - 0x28d8], 0
mov byte [ebp - 4], 7
cmp byte [ebp - 0x90], 0
jne 0x436af3
xor ecx, ecx
jmp 0x436b09
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436b00
sub ecx, edx
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x28d8]
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28c0]
push ecx
mov ecx, eax
call fcn.0042c5f0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28a8]
push ecx
mov ecx, eax
call fcn.0042c5f0
push 2
push 0x5b1978
mov ecx, eax
call fcn.0042c4c0
cmp byte [ebp - 0x2890], 0
mov esi, eax
jne 0x436b5d
xor ecx, ecx
jmp 0x436b6f
lea ecx, [ebp - 0x2890]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436b66
sub ecx, edx
push ecx
lea eax, [ebp - 0x2890]
mov ecx, esi
push eax
call fcn.0042c4c0
cmp dword [edi + 0x78], 0
je 0x436e4a
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x436ba5
mov eax, dword [edx]
jmp 0x436ba7
mov eax, edx
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x436bb3
xor ecx, ecx
jmp 0x436bc1
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436bb8
sub ecx, esi
push ecx
push ebx
mov ecx, edx
call fcn.0042c1e0
call fcn.00436fe0
test eax, eax
je 0x436e4a
push 1
push 0x5b197c
lea ecx, [ebp - 0x28d8]
call fcn.0042c4c0
cmp dword [edi + 0x70], 0
lea esi, [edi + 0x60]
jne 0x436cfb
cmp dword [edi + 0x40], 0
jne 0x436c9c
lea ecx, [ebp - 0x28f0]
call fcn.00434af0
push str.Logs
lea ecx, [ebp - 0x28f0]
mov byte [ebp - 4], 8
call fcn.0042a340
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x436c3c
mov eax, dword [ecx]
jmp 0x436c3e
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28f0]
push 0
push eax
call fcn.0042c2e0
call fcn.00436350
add esp, 0x18
test eax, eax
jne 0x436c76
sub esp, 0x18
lea eax, [ebp - 0x28f0]
mov ecx, esp
push eax
call fcn.0042a560
call fcn.004363a0
add esp, 0x18
lea ecx, [edi + 0x30]
lea eax, [ebp - 0x28f0]
cmp ecx, eax
je 0x436c8d
push 0xffffffffffffffff
push 0
push eax
call fcn.0042c2e0
lea ecx, [ebp - 0x28f0]
mov byte [ebp - 4], 7
call fcn.0042a3c0
cmp dword [edi + 0x58], 0
jne 0x436cc1
lea ecx, [ebp - 0x2958]
call fcn.00434a10
push eax
lea ecx, [edi + 0x48]
call fcn.0042a400
lea ecx, [ebp - 0x2958]
call fcn.0042a3c0
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x30]
mov ecx, esi
push eax
call fcn.0042c5f0
push 1
push 0x5b0c88
mov ecx, eax
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x48]
push ecx
mov ecx, eax
call fcn.0042c5f0
push 4
push str..log
mov ecx, eax
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2940]
mov dword [ebp - 0x292c], 0xf
mov dword [ebp - 0x2930], 0
mov byte [ebp - 0x2940], 0
call fcn.0042c2e0
cmp dword [ebp - 0x292c], 0x10
lea eax, [ebp - 0x2940]
cmovae eax, dword [ebp - 0x2940]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436d51
test al, 0x10
jne 0x436d51
mov ebx, 1
jmp 0x436d53
xor ebx, ebx
mov eax, dword [ebp - 0x292c]
cmp eax, 0x10
jb 0x436d71
inc eax
lea ecx, [ebp - 0x2940]
push eax
push dword [ebp - 0x2940]
call fcn.0042ceb0
test ebx, ebx
jne 0x436d7f
cmp dword [esi + 0x14], 0x10
jb 0x436dd0
mov ecx, dword [esi]
jmp 0x436dd2
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.0042c2e0
call fcn.00435c80
and eax, 0xfff00000
add esp, 0x18
cmp eax, 0xa00000
jb 0x436ddb
cmp dword [esi + 0x14], 0x10
jb 0x436dbd
mov eax, dword [esi]
jmp 0x436dbf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x14], 0x10
jb 0x436dd0
mov ecx, dword [esi]
jmp 0x436dd2
mov ecx, esi
push ecx
call fcn.004359b0
add esp, 4
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2920], 0
jb 0x436ded
mov esi, dword [esi]
push 0x5b1990
lea eax, [ebp - 0x2920]
push esi
push eax
call fcn.0053af56
add esp, 0xc
test eax, eax
jne 0x436e4a
push dword [ebp - 0x2920]
cmp dword [ebp - 0x28c4], 0x10
lea eax, [ebp - 0x28d8]
push 1
push dword [ebp - 0x28c8]
cmovae eax, dword [ebp - 0x28d8]
push eax
call fcn.0053acb7
push dword [ebp - 0x2920]
call fcn.0053a22b
add esp, 0x14
push dword [ebp - 0x2920]
call fcn.0053a2fa
add esp, 4
mov eax, dword [ebp - 0x28c4]
cmp eax, 0x10
jb 0x436e68
inc eax
lea ecx, [ebp - 0x28d8]
push eax
push dword [ebp - 0x28d8]
call fcn.0042ceb0
mov eax, dword [ebp - 0x2894]
mov dword [ebp - 0x28c4], 0xf
mov dword [ebp - 0x28c8], 0
mov byte [ebp - 0x28d8], 0
cmp eax, 0x10
jb 0x436ea1
inc eax
lea ecx, [ebp - 0x28a8]
push eax
push dword [ebp - 0x28a8]
call fcn.0042ceb0
mov eax, dword [ebp - 0x28ac]
mov dword [ebp - 0x2894], 0xf
mov dword [ebp - 0x2898], 0
mov byte [ebp - 0x28a8], 0
cmp eax, 0x10
jb 0x436eda
inc eax
lea ecx, [ebp - 0x28c0]
push eax
push dword [ebp - 0x28c0]
call fcn.0042ceb0
push edi
mov dword [ebp - 0x28ac], 0xf
mov dword [ebp - 0x28b0], 0
mov byte [ebp - 0x28c0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00533845
mov esp, ebp
pop ebp
ret