Function at 0x4083a0
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452e56
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x46a860]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x30]
test eax, eax
mov dword [esp + 0x18], ebx
je 0x4083f4
mov eax, dword [eax]
call fcn.00405080
cmp dword [ebx + 0x2c], 0
je 0x40881d
mov eax, dword [ebx + 0x20]
push 0x2000
push 4
push eax
call fcn.0041505b
push 0xffff
mov esi, eax
mov eax, dword [ebx + 0x18]
push 4
push eax
mov dword [esp + 0x44], esi
call fcn.0041505b
push 0xffff
mov edi, eax
mov eax, dword [ebx + 0x1c]
push 4
push eax
mov dword [esp + 0x38], edi
call fcn.0041505b
push 0x2000
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x24]
push 4
push eax
call fcn.0041505b
push 0x2000
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x28]
push 4
push eax
call fcn.0041505b
cmp esi, 0xffffffff
mov dword [esp + 0x30], eax
je 0x408819
cmp edi, 0xffffffff
je 0x408819
mov ecx, dword [esp + 0x34]
cmp ecx, 0xffffffff
je 0x408819
mov edx, dword [esp + 0x1c]
cmp edx, 0xffffffff
je 0x408819
cmp eax, 0xffffffff
je 0x408819
test esi, esi
je 0x408819
test edi, edi
je 0x408819
test ecx, ecx
je 0x408819
test edx, edx
je 0x408819
test eax, eax
je 0x408819
cmp dword [ebx + 0x3c], 2
jne 0x4086fc
mov dword [esp + 0x24], 0
mov eax, dword [ebx + 0x38]
push eax
lea edi, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.00404f10
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4086f4
push 0x200
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00437860
add esp, 0xc
push 0x200
lea ecx, [esp + 0x240]
push 0
push ecx
call fcn.00437860
mov edx, dword [ebx + 0xc]
add esp, 0xc
push edx
lea eax, [esp + 0x40]
push 0x200
push eax
call fcn.00436837
mov ecx, dword [esi + 0x14]
add esp, 0xc
push ecx
lea edx, [esp + 0x40]
push 0x200
push edx
call fcn.004369f5
mov esi, dword [esi + 0x10]
add esp, 0xc
mov edi, str.Launcher.exe
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408577
push str..new
lea ecx, [esp + 0x40]
push 0x200
push ecx
call fcn.004369f5
add esp, 0xc
mov edx, dword [ebx + 0x10]
push edx
lea eax, [esp + 0x240]
push 0x200
push eax
call fcn.00436837
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x14]
add esp, 0xc
push ecx
lea edx, [esp + 0x240]
push 0x200
push edx
call fcn.004369f5
mov eax, dword [esi + 0x14]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.004029f0
lea edi, [esp + 0x14]
mov dword [esp + 0x450], 0
call fcn.00408b00
mov ebx, edi
call fcn.00408a50
mov ecx, edi
push ecx
call fcn.004089a0
mov edi, esi
cmp dword [edi], 1
je 0x40869f
mov esi, ebx
call fcn.00405af0
test al, al
jne 0x40865d
call fcn.00405cd0
test al, al
jne 0x40865d
call fcn.00405e50
test al, al
jne 0x40865d
call fcn.00406110
test al, al
jne 0x40865d
call fcn.00406300
test al, al
jne 0x40865d
mov esi, dword [edi + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.0040e600
add esp, 4
mov ecx, eax
call fcn.0040e520
mov edi, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x408650
test cl, cl
je 0x40864c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x408650
add eax, 2
add esi, 2
test cl, cl
jne 0x408630
xor eax, eax
jmp 0x408655
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408805
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
add eax, 0x12c
mov dword [esp + 0x24], eax
xor edx, edx
div dword [esi + 0x5c]
add eax, 0x2bc
mov dword [esi + 0x58], eax
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4086d2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add eax, 0x12c
mov dword [esp + 0x24], eax
xor edx, edx
div dword [ecx + 0x5c]
mov edx, dword [ecx + 8]
add eax, 0x2bc
push eax
push 0
mov dword [ecx + 0x58], eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call fcn.00402ae0
cmp dword [esi + 0x3c], 2
mov ebx, dword [esp + 0x18]
je 0x4084d5
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
push 0
push esi
call fcn.0041507d
push 0
push edi
call fcn.0041507d
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.0041507d
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.0041507d
mov ecx, dword [esp + 0x30]
push 0
push ecx
call fcn.0041507d
mov eax, dword [ebx + 0xc]
push eax
lea ecx, [esp + 0x2c]
call fcn.004029f0
push 0x1c
push str.LauncherCfgNewUpdateCfg.xml
lea ecx, [esp + 0x30]
mov dword [esp + 0x458], 1
call fcn.00404930
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
lea edi, [ebx + 0x60]
push ecx
call fcn.00405a10
mov edx, dword [esp + 0x34]
push edx
call fcn.00406e00
lea edi, [ebx + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [ebx + 0x3c], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push 0x3e9
push 0
push eax
push ecx
mov dword [ebx + 0x58], 0x3e9
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x450], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4087da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x14]
call fcn.00402ae0
xor eax, eax
jmp 0x4087df
cmp dword [ebx + 0x3c], 2
jne 0x408730
xor esi, esi
mov eax, dword [ebx + 0x38]
push eax
lea edi, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.00404f10
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x408730
push 0x200
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00437860
add esp, 0xc
push 0x200
lea eax, [esp + 0x240]
push 0
push eax
call fcn.00437860
mov ecx, dword [ebx + 0x10]
add esp, 0xc
push ecx
lea edx, [esp + 0x40]
push 0x200
push edx
call fcn.00436837
mov eax, dword [edi + 0x14]
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push 0x200
push ecx
call fcn.004369f5
mov edx, dword [ebx + 0x10]
add esp, 0xc
push edx
lea eax, [esp + 0x240]
push 0x200
push eax
call fcn.00436837
mov ecx, dword [edi + 0x14]
add esp, 0xc
push ecx
lea edx, [esp + 0x240]
push 0x200
push edx
call fcn.004369f5
add esp, 0xc
cmp dword [edi], 1
je 0x40894c
mov edi, dword [edi + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.0040e600
add esp, 4
mov ecx, eax
call fcn.0040e520
nop
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x408910
test cl, cl
je 0x40890c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x408910
add eax, 2
add edi, 2
test cl, cl
jne 0x4088f0
xor eax, eax
jmp 0x408915
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408981
add esi, 0x12c
xor edx, edx
mov eax, esi
div dword [ebx + 0x5c]
lea ecx, [esp + 0x23c]
push ecx
add eax, 0x2bc
mov dword [ebx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push edx
push 0
push eax
push ecx
jmp 0x40896c
add esi, 0x12c
xor edx, edx
mov eax, esi
div dword [ebx + 0x5c]
mov edx, dword [ebx + 8]
add eax, 0x2bc
push eax
push 0
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebx + 0x3c], 2
je 0x408829
jmp 0x408730
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push 0
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x4087df