Function at 0x4120e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515656
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x56f790]
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 ebx, ecx
mov dword [ebp - 0xe4], ebx
push str.CIconBubbleWnd::_DownloadGameIcon
call fcn.00441a80
add esp, 4
call fcn.00410b40
mov ecx, eax
test ecx, ecx
je 0x4125c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe0], eax
push 0
push dword [ebx + 0x138]
lea edi, [ebx + 0x138]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call fcn.0044b680
add esp, 0xc
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00441e00
mov ecx, eax
call fcn.00442e60
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004484a0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043b320
add esp, 0x14
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x4121ce
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4121ce
xor ecx, ecx
jmp 0x4121e2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4121d3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe0]
call fcn.00407f80
push 0
call fcn.004d0898
push eax
lea eax, [ebp - 0xe0]
push str.__d.png
push eax
call fcn.00410920
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x412249
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41223f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125cd
push edx
push ecx
call fcn.004ac0a8
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x41229b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412291
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125d2
push edx
push ecx
call fcn.004ac0a8
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4122e7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4122dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125d7
push edx
push ecx
call fcn.004ac0a8
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x412331
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412327
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125dc
push edx
push ecx
call fcn.004ac0a8
add esp, 8
push dword [ebp - 0xe0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x41234f
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00410b40
mov ecx, eax
test ecx, ecx
je 0x4125e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe8], eax
push 0
push 0x2710
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xe0]
push eax
push edi
call fcn.00459ed0
add esp, 0x14
push dword [ebp - 0xe0]
test eax, eax
jne 0x4123ae
push dword [edi]
push str.CIconBubbleWnd::_DownloadGameIcon__SyncHttpDownloadFile_failed___s_____s
call fcn.00441aa0
add esp, 0xc
xor edi, edi
jmp 0x41252c
call esi
test eax, eax
jne 0x4123ce
push dword [ebp - 0xe0]
push str.CIconBubbleWnd::_DownloadGameIcon__saved_file__s_not_found
call fcn.00441aa0
add esp, 8
xor edi, edi
jmp 0x41252c
lea eax, [ebp - 0xe0]
push eax
call fcn.004383f0
add esp, 4
test edx, edx
ja 0x412502
jb 0x4123f2
cmp eax, 0x1400
jae 0x412502
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00410030
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043c7b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00410350
test esi, esi
jle 0x4124f6
cmp dword [ebp - 0x14], 0x10
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ebx, dword [ebp - 0x28]
cmp eax, 0x12
jb 0x4124f0
add eax, 0xffffffef
add eax, ebx
mov dword [ebp - 0xec], eax
sub eax, ebx
push eax
push 0x3c
push ebx
call fcn.004b1c60
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4124f0
nop word [eax + eax]
mov ecx, edi
mov edx, str._title_404__title_
mov esi, 0xe
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4124a1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x412490
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4124c8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4124c8
cmp esi, 0xfffffffe
je 0x4124c4
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4124c8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4124c8
xor eax, eax
jmp 0x4124cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x412590
mov eax, dword [ebp - 0xec]
inc edi
sub eax, edi
push eax
push 0x3c
push edi
call fcn.004b1c60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x412480
mov ebx, dword [ebp - 0xe4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00410300
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebx + 0x128]
call fcn.00408360
push dword [ebx + 0x128]
push str.CIconBubbleWnd::_DownloadGameIcon_success___s
call fcn.00441a80
add esp, 8
mov edi, 1
mov edx, dword [ebp - 0xe8]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412550
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x412572
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov 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.004ac4b8
mov esp, ebp
pop ebp
ret
sub edi, ebx
cmp edi, 0xffffffff
je 0x4124f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.CIconBubbleWnd::_DownloadGameIcon__invalid_response__s
call fcn.004415b0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00410300
xor edi, edi
jmp 0x41252c
push 0x80004005
call fcn.00404400
call fcn.004bb9e8
call fcn.004bb9e8
call fcn.004bb9e8
call fcn.004bb9e8
push 0x80004005
call fcn.00404400
int3