Function at 0x403630
Capabilities:
Delete file

Disassembly:
sub esp, 0x100
mov eax, 0x4069f8
push ebx
push ebp
push esi
push edi
mov esi, 0x406df8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40366e
test cl, cl
je 0x403668
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40366e
add eax, 2
add esi, 2
test cl, cl
jne 0x403644
xor edi, edi
xor eax, eax
jmp 0x403675
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
cmp eax, edi
mov ebx, 1
jne 0x40376b
push 0x40689c
call sub.libwpwr.dll_wpwrGetEnv
add esp, 4
cmp eax, edi
jne 0x4036f7
call sub.libwpwr.dll_wpwrTmpDirGet
mov esi, eax
cmp esi, edi
jne 0x4036a9
mov esi, 0x406898
cmp dword [0x4069ec], edi
jne 0x4036e7
push ebx
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
mov dword [0x4069ec], ebx
push esi
push 0x4069f8
push 0x40686c
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov dword [0x4069ec], edi
push edi
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
jmp 0x4037da
push esi
push 0x4069f8
push 0x40686c
jmp 0x4037d2
push eax
push 0x406860
push 0x4069f8
call ebp
add esp, 0xc
push 0x4069f8
call fcn.00403990
add esp, 4
test eax, eax
je 0x4037ea
call sub.libwpwr.dll_wpwrTmpDirGet
mov esi, eax
cmp esi, edi
jne 0x40372c
mov esi, 0x406898
cmp dword [0x4069ec], edi
jne 0x4037c7
push ebx
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
mov dword [0x4069ec], ebx
push esi
push 0x4069f8
push 0x406834
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov dword [0x4069ec], edi
push edi
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
jmp 0x4037da
push 0x4069f8
call fcn.00403990
add esp, 4
test eax, eax
je 0x4037ea
call sub.libwpwr.dll_wpwrTmpDirGet
mov esi, eax
cmp esi, edi
jne 0x40378c
mov esi, 0x406898
cmp dword [0x4069ec], edi
jne 0x4037c7
push ebx
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
mov dword [0x4069ec], ebx
push esi
push 0x4069f8
push 0x406834
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov dword [0x4069ec], edi
push edi
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
jmp 0x4037da
push esi
push 0x4069f8
push 0x406834
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
push esi
push 0x406830
push 0x4069f8
call ebp
add esp, 0xc
push 0x406820
push 0x4069f8
lea eax, [esp + 0x18]
push 0x406818
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x4067c8
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, edi
jne 0x40390e
call sub.libwpwr.dll_wpwrTmpDirGet
mov edi, eax
test edi, edi
jne 0x40382e
mov edi, 0x406898
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.MSVCRT.dll_strerror]
mov esi, eax
mov eax, dword [0x4069ec]
add esp, 4
test eax, eax
jne 0x40388c
push ebx
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
mov dword [0x4069ec], ebx
test esi, esi
jne 0x403863
mov esi, 0x406688
lea eax, [esp + 0x10]
push esi
push eax
push 0x4066f8
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov dword [0x4069ec], 0
push 0
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
jmp 0x4038a8
test esi, esi
jne 0x403895
mov esi, 0x406688
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x4066f8
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov eax, dword [0x4069ec]
test eax, eax
jne 0x4038e9
push ebx
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
mov dword [0x4069ec], ebx
push edi
push 0x4069f8
push 0x406834
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
mov dword [0x4069ec], 0
push 0
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
jmp 0x4038fc
push edi
push 0x4069f8
push 0x406834
call sub.libwpwr.dll_wpwrLogWarn
add esp, 0xc
push edi
push 0x406830
push 0x4069f8
call ebp
add esp, 0xc
jmp 0x403926
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov esi, dword [esp + 0x114]
mov eax, dword [0x4060e8]
push esi
push eax
push 0x4069f8
push 0x40680c
push 0x406af8
call ebp
mov ecx, dword [0x4060e8]
add esp, 0x14
push esi
push ecx
push 0x4069f8
push 0x4067fc
push 0x406bf8
call ebp
mov edx, dword [0x4060e8]
add esp, 0x14
push esi
push edx
push 0x4069f8
push 0x4067e8
push 0x406cf8
call ebp
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret