Function at 0x413e90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d668
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44c00c]
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 - 0x2c], ebx
cmp dword [ebp + 0x10], 0
jne 0x4140e5
push dword [ebx + 0x128]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push str.updater_err_2__xhttperr:_d
push eax
call fcn.004020f0
add esp, 8
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402ee0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x24], esp
call fcn.00418bc0
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.004034e0
mov ecx, eax
test ecx, ecx
je 0x4148ff
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414909
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [esi], eax
push str.bandizip
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402b60
test al, al
jne 0x413f6d
push 8
push str.bandizip
mov ecx, esi
call fcn.00402f50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
call fcn.004188c0
add esp, 0xc
call fcn.004034e0
mov ecx, eax
test ecx, ecx
je 0x414910
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41491a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x44525c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402b60
test al, al
jne 0x413fcd
push 3
push 0x44525c
lea ecx, [ebp - 0x14]
call fcn.00402f50
push str.UPDATER
push str.TEXT_UPDATER_DOWNLOAD_ERROR
mov byte [ebp - 4], 5
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
lea ecx, [ebp - 0x14]
mov edx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004022d0
add esp, 4
mov esi, eax
push str.UPDATER
push str.TEXT_UPDATER_TITLE
mov byte [ebp - 4], 6
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push 0
push eax
push dword [esi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov ecx, dword [ebp - 0x28]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x414064
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x2c]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414921
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41409d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x2c]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41492b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4148df
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414935
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4148df
push 0
push 0
push 3
push 0
push 0
push 0
push dword [ebx + 0x14c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414109
mov dword [ebp - 0x28], eax
jmp 0x41411c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [ebx + 0x14c]
lea edx, [ebp - 0x18]
call fcn.004012f0
add esp, 4
test eax, eax
jne 0x41427b
push 0x445264
call fcn.004011c0
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.updater_err_3_
call fcn.00402a70
push ecx
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x14], esp
call fcn.00418bc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 8
push str.bandizip
call fcn.00402a70
mov dword [ebp - 4], 0xffffffff
call fcn.004188c0
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x4452ac
call fcn.00402a70
mov esi, eax
push str.UPDATER
push str.TEXT_UPDATER_DOWNLOAD_ERROR
mov dword [ebp - 4], 9
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004022d0
add esp, 4
mov esi, eax
push str.UPDATER
push str.TEXT_UPDATER_TITLE
mov byte [ebp - 4], 0xa
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push 0
push eax
push dword [esi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 9
or esi, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x414227
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x2c]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41493b
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x41426b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414943
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4148df
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4148df
call fcn.004034e0
mov ecx, eax
test ecx, ecx
je 0x41494c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414956
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 0x14c]
lea edx, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
call fcn.00403b90
mov esi, dword [ebp - 0x20]
add esp, 4
test eax, eax
jne 0x4144a7
push 0x4452b8
call fcn.004011c0
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push str.updater_err_5__sign_hr:0x_x
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402ee0
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x24], esp
call fcn.00418bc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xe
push str.bandizip
call fcn.00402a70
mov byte [ebp - 4], 0xc
call fcn.004188c0
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0x44533c
call fcn.00402a70
mov edi, eax
push str.UPDATER
push str.TEXT_UPDATER_DOWNLOAD_ERROR
mov byte [ebp - 4], 0xf
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push edi
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004022d0
add esp, 4
mov edi, eax
push str.UPDATER
push str.TEXT_UPDATER_TITLE
mov byte [ebp - 4], 0x10
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push 0
push eax
push dword [edi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0xf
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4143e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41495d
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x4143e7
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x414420
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414964
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x2c]
push 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x414467
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41496e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4148df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4149ac
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4148df
push str.updater___VerifyExeSignature__
call fcn.004011c0
add esp, 4
cmp dword [esi - 0xc], 0
jl 0x414796
push str.CNBandisoft
push esi
call fcn.0041f37b
add esp, 8
test eax, eax
je 0x414796
sub eax, esi
sar eax, 1
test eax, eax
jle 0x414796
push str.updater___valid_signer
call fcn.004011c0
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.00402b20
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00402b20
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
push edi
push 0x4450ec
push eax
call fcn.004030e0
push edi
lea eax, [ebp - 0x14]
push str._08x
push eax
call fcn.004030e0
lea eax, [ebx + 0x144]
add esp, 0x18
mov edx, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
call fcn.00414b80
mov edi, dword [ebp - 0x1c]
or ebx, 0xffffffff
test al, al
je 0x41470c
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00414b80
test al, al
je 0x41470c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x15c]
test ecx, ecx
je 0x4145af
call fcn.0041b430
test eax, eax
je 0x4145af
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov edx, dword [eax + 0x15c]
add edx, 0x160
call fcn.00414b80
test al, al
je 0x41470c
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00414b80
test al, al
je 0x41470c
push str.updater___CRC
call fcn.004011c0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push dword [eax + 0x150]
mov eax, dword [ebp - 0x24]
push dword [eax]
lea eax, [ebp - 0x18]
push dword [ebp - 0x28]
push edi
push str.updater_err_4__dl:0x_s__d__ini:0x_s__s_
push eax
call fcn.004020f0
add esp, 0x18
mov byte [ebp - 4], 0x17
mov ebx, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402ee0
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
call fcn.00418bc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x19
push str.bandizip
call fcn.00402a70
mov byte [ebp - 4], 0x17
call fcn.004188c0
add esp, 0xc
push str.UPDATER
push str.TEXT_UPDATER_DOWNLOAD_ERROR
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004022d0
add esp, 4
mov ebx, eax
push str.UPDATER
push str.TEXT_UPDATER_TITLE
mov byte [ebp - 4], 0x1a
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push 0
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebx]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0x17
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4146bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414978
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
push 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebp - 4], 0x16
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41471a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414980
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41471a
mov eax, dword [ebp - 0x2c]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [ebp - 4], 0x15
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x414757
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41498a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xb
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x414467
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414994
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x41446d
push str.updater___invalid_signer
call fcn.004011c0
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.updater_err_6_
call fcn.00402a70
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x28], esp
call fcn.00418bc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x12
push str.bandizip
call fcn.00402a70
mov byte [ebp - 4], 0xb
call fcn.004188c0
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0x445434
call fcn.00402a70
mov edi, eax
push str.UPDATER
push str.TEXT_UPDATER_DOWNLOAD_ERROR
mov byte [ebp - 4], 0x13
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push edi
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004022d0
add esp, 4
mov edi, eax
push str.UPDATER
push str.TEXT_UPDATER_TITLE
mov byte [ebp - 4], 0x14
call fcn.00408e00
mov ecx, eax
call fcn.0040b0f0
push 0
push eax
push dword [edi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0x13
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41487a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41499b
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x414880
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4148cc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x20]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4149a2
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x2c]
push 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x41446d
mov eax, dword [ebp - 0x2c]
push 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x41446d
xor eax, eax
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.0041d9da
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004039b0
call edx
jmp 0x413f46
push 0x80004005
call fcn.004039b0
call edx
jmp 0x413fa3
mov ecx, edx
call dword [ebp - 0x24]
jmp 0x414064
mov ecx, edx
call dword [ebp - 0x24]
jmp 0x41409d
mov ecx, edx
call esi
jmp 0x4148df
call dword [ebp - 0x24]
jmp 0x414227
mov ecx, edx
call esi
jmp 0x41426b
push 0x80004005
call fcn.004039b0
call edx
jmp 0x4142a1
call edi
jmp 0x4143e1
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x414420
mov ecx, edx
call dword [ebp - 0x28]
jmp 0x414467
call dword [ebp - 0x28]
jmp 0x4146bf
mov ecx, edx
call dword [ebp - 0x28]
jmp 0x41471a
mov ecx, edx
call dword [ebp - 0x28]
jmp 0x414757
call edx
jmp 0x414467
call edi
jmp 0x41487a
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x4148cc
call edx
jmp 0x4148df