Function at 0x1003e900
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083d57
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x100a7070]
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 dword [ebp - 0xc38], ecx
mov eax, dword [ecx + 0xc]
mov edi, 0x80004005
mov edx, dword [0x100a97a8]
mov dword [ebp - 0xc24], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xc30], edi
mov dword [ebp - 0xc2c], 0
mov dword [ebp - 0xc34], 0
mov ecx, dword [eax + edx*4]
mov eax, dword [0x100aa20c]
mov dword [ebp - 0xc44], ecx
cmp eax, dword [ecx + 4]
jle 0x1003e9df
push 0x100aa20c
call fcn.1004466d
add esp, 4
cmp dword [0x100aa20c], 0xffffffff
jne 0x1003e9df
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x1003e9a9
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1003e9be
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x1003e9c0
call edx
add eax, 0x10
push 0x100850d0
mov dword [0x100aa210], eax
call fcn.10044cbe
push 0x100aa20c
call fcn.1004462e
add esp, 8
mov esi, dword [0x100aa210]
cmp dword [esi - 0xc], 0
jne 0x1003ea68
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ea30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x100aa210
call fcn.10019610
push 1
push 0x10097a00
mov ecx, 0x100aa210
call fcn.10018fe0
mov esi, dword [0x100aa210]
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.1005d9b0
push str.update_reupd.dat
push esi
push str.UpdateFiles_:_path_____s_s_n
lea eax, [ebp - 0xc20]
push 0x400
push eax
call fcn.1001a430
add esp, 0x20
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.update_reupd.dat
mov edx, 0x100aa210
lea ecx, [ebp - 0xc28]
call fcn.100184a0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc28]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x1003eb02
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003eafe
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003eb02
mov ecx, edx
call esi
mov esi, dword [ebp - 0xc24]
test esi, esi
je 0x1003ef9b
xor eax, eax
test eax, eax
jne 0x1003ef5e
mov ecx, dword [ebp - 0xc38]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1003eb3e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003ef84
mov ecx, dword [ebp - 0xc38]
test esi, esi
je 0x1003e99f
mov edi, esi
mov esi, dword [esi]
mov dword [ebp - 0xc24], esi
cmp dword [edi + 0x30], 1
jne 0x1003eb6b
cmp dword [ecx], 0
je 0x1003eb6b
mov eax, 0x20010001
mov dword [ebp - 0xc30], eax
jmp 0x1003ec31
lea eax, [edi + 0x18]
mov edx, 0x100aa210
push eax
lea ecx, [ebp - 0xc40]
call fcn.1003b260
mov esi, eax
lea eax, [edi + 0x24]
mov dword [ebp - 4], 0
push eax
mov edx, 0x100aa210
lea ecx, [ebp - 0xc3c]
call fcn.1003b260
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.1003c3e0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0xc3c]
mov dword [ebp - 0xc30], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003ebe9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ebe7
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003ebe9
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc40]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ec25
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ec21
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003ec25
mov ecx, edx
call esi
mov esi, dword [ebp - 0xc24]
mov eax, dword [ebp - 0xc30]
sub eax, 0
je 0x1003ef7b
sub eax, 1
je 0x1003ef72
sub eax, 0x20010000
je 0x1003ec61
mov eax, 1
mov dword [edi + 0x2c], 5
mov dword [ebp - 0xc2c], eax
jmp 0x1003ef56
call fcn.100138c0
test eax, eax
je 0x1003e99f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, 0x10097a44
jne 0x1003ec84
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x1003ec88
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0xc28], eax
push dword [ebp - 0xc34]
lea eax, [ebp - 0xc28]
mov dword [ebp - 4], 2
push str.file_d
push eax
call fcn.10019da0
mov ecx, dword [ebp - 0xc44]
add esp, 0xc
mov eax, dword [0x100aa214]
cmp eax, dword [ecx + 4]
jle 0x1003ed21
push 0x100aa214
call fcn.1004466d
add esp, 4
cmp dword [0x100aa214], 0xffffffff
jne 0x1003ed21
call fcn.100138c0
test eax, eax
je 0x1003e99f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, 0x10097a44
jne 0x1003ecfe
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x1003ed02
mov ecx, eax
call edx
add eax, 0x10
push 0x10085090
mov dword [0x100aa218], eax
call fcn.10044cbe
push 0x100aa214
call fcn.1004462e
add esp, 8
mov eax, dword [0x100aa218]
cmp dword [eax - 0xc], 0
jne 0x1003eda2
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1005d9b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ed70
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, 0x100aa218
call fcn.10019610
push 1
push 0x10097a00
mov ecx, 0x100aa218
call fcn.10018fe0
push str.update_reupd.dat
mov edx, 0x100aa218
lea ecx, [ebp - 0xc4c]
call fcn.100184a0
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xc28]
mov ebx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xc48], eax
cmp dword [esi - 4], 1
jle 0x1003edef
push dword [esi - 0xc]
lea ecx, [ebp - 0xc28]
call fcn.10019ae0
mov esi, dword [ebp - 0xc28]
mov eax, dword [ebp - 0xc48]
push ebx
push eax
push 0x1009df54
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc4c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ee3a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ee36
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003ee3a
mov ecx, edx
call ebx
push dword [esi - 8]
push esi
call fcn.10063b4e
add esp, 8
test eax, eax
js 0x1003ef8b
cmp eax, dword [esi - 8]
jg 0x1003ef8b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, 0x100aa218
push str.update_reupd.dat
lea ecx, [ebp - 0xc50]
call fcn.100184a0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [esi - 4], 1
mov ebx, dword [eax]
mov edi, dword [edi + 0x24]
jle 0x1003ee9b
push dword [esi - 0xc]
lea ecx, [ebp - 0xc28]
call fcn.10019ae0
mov esi, dword [ebp - 0xc28]
push ebx
push edi
push str.FROM
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc50]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003eee8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003eee4
mov eax, dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003eeee
mov ecx, edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi - 8]
push esi
call fcn.10063b4e
add esp, 8
test eax, eax
js 0x1003ef8b
cmp eax, dword [esi - 8]
jg 0x1003ef8b
inc dword [ebp - 0xc34]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ef4a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003ef6e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
mov esi, dword [ebp - 0xc24]
mov eax, dword [ebp - 0xc2c]
test esi, esi
jne 0x1003eb12
cmp dword [ebp - 0xc34], 0
jle 0x1003ef95
mov eax, 0x20010001
jmp 0x1003efa6
call edx
jmp 0x1003ef4a
mov dword [edi + 0x2c], 4
jmp 0x1003ef50
mov dword [edi + 0x2c], 3
jmp 0x1003ef50
mov eax, 0x20010002
jmp 0x1003efa6
push 0x80070057
call fcn.100142e0
mov edi, dword [ebp - 0xc30]
xor eax, eax
cmp dword [ebp - 0xc2c], eax
cmovne eax, edi
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.1004450b
mov esp, ebp
pop ebp
ret