Function at 0x40f730
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8500
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x526260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x288], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 8
push eax
mov dword [ebp - 0x288], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push esi
push 0
mov ecx, 0x528d08
call fcn.0040b7f0
mov ecx, dword [0x528d48]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], edi
test ecx, ecx
jne 0x40f827
push 0x52508c
call esi
cmp dword [0x528d48], 0
jne 0x40f81a
push 8
call fcn.004571ac
mov esi, eax
add esp, 4
test esi, esi
je 0x40f801
mov ecx, esi
call fcn.00455d20
jmp 0x40f803
xor esi, esi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], esi
mov esi, dword [ebp - 0x290]
push 0x52508c
call edi
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41057e
mov ecx, dword [0x528d48]
test ecx, ecx
jne 0x40f88b
push 0x52508c
call esi
cmp dword [0x528d48], 0
jne 0x40f87e
push 8
call fcn.004571ac
mov esi, eax
add esp, 4
test esi, esi
je 0x40f86b
mov ecx, esi
call fcn.00455d20
jmp 0x40f86d
xor esi, esi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], esi
push 0x52508c
call edi
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
lea edx, [ebp - 0x248]
push 0
push 0x4f7f44
push edx
call dword [eax + 0x7c]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
mov dword [ebp - 0x2a4], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x284], eax
cmp edi, 8
jae 0x40f8f7
movups xmm0, xmmword [eax]
mov dword [ebp - 0x21c], 7
movups xmmword [ebp - 0x230], xmm0
jmp 0x40f938
mov esi, edi
lea ecx, [ebp - 0x230]
mov eax, SysReAllocString
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00407f90
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x230], eax
push ecx
push dword [ebp - 0x284]
push eax
call fcn.004912d0
add esp, 0xc
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], edi
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041ffd0
add esp, 0xc
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x40f978
mov edx, dword [ebp - 0x230]
test edx, edx
jne 0x40f978
xor ecx, ecx
jmp 0x40f98f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f980
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x528d44
call fcn.00403fb0
call fcn.00403090
mov ecx, eax
test ecx, ecx
je 0x41059d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [0x528d48]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
test ecx, ecx
jne 0x40fa15
push 0x52508c
call dword [ebp - 0x290]
cmp dword [0x528d48], 0
jne 0x40fa04
push 8
call fcn.004571ac
mov edi, eax
add esp, 4
test edi, edi
je 0x40f9f1
mov ecx, edi
call fcn.00455d20
jmp 0x40f9f3
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], edi
push 0x52508c
call dword [ebp - 0x294]
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
lea edx, [ebp - 0x278]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [str.entludashi]
mov edi, eax
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x284], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40fa36
sub edx, dword [ebp - 0x284]
mov eax, edi
sar edx, 1
cmp dword [edi + 0x14], 8
jb 0x40fa53
mov eax, dword [edi]
mov edi, dword [edi + 0x10]
cmp edi, edx
jne 0x40fa8d
test edi, edi
je 0x40fa7d
sub eax, ecx
mov dword [ebp - 0x284], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x40fa8d
mov eax, dword [ebp - 0x284]
add ecx, 2
sub edi, 1
jne 0x40fa66
mov eax, 1
mov byte [ebp - 0x27d], al
jmp 0x40fb71
mov ecx, dword [0x528d48]
test ecx, ecx
jne 0x40fae8
push 0x52508c
call dword [ebp - 0x290]
cmp dword [0x528d48], 0
jne 0x40fad7
push 8
call fcn.004571ac
mov edi, eax
add esp, 4
test edi, edi
je 0x40fac4
mov ecx, edi
call fcn.00455d20
jmp 0x40fac6
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], edi
push 0x52508c
call dword [ebp - 0x294]
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
lea edx, [ebp - 0x260]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [str.ludashicata]
mov edi, eax
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x284], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40fb10
sub edx, dword [ebp - 0x284]
mov eax, edi
sar edx, 1
cmp dword [edi + 0x14], 8
jb 0x40fb2d
mov eax, dword [edi]
mov edi, dword [edi + 0x10]
cmp edi, edx
jne 0x40fb65
test edi, edi
je 0x40fb57
sub eax, ecx
mov dword [ebp - 0x284], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x40fb65
mov eax, dword [ebp - 0x284]
add ecx, 2
sub edi, 1
jne 0x40fb40
mov eax, 3
mov byte [ebp - 0x27d], 1
jmp 0x40fb71
mov byte [ebp - 0x27d], 0
mov eax, 3
test al, 2
je 0x40fbd2
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x40fbb5
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fbab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a7
push edx
push ecx
call fcn.00456d4c
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40fc12
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105ac
push edx
push ecx
call fcn.00456d4c
add esp, 8
or edi, 0xffffffff
cmp byte [ebp - 0x27d], 0
je 0x40fd32
push 1
push dword [ebp - 0x298]
lea eax, [ebp - 0x288]
push eax
call fcn.00459580
add esp, 8
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00459670
push 0
push str.logdumpuper.log
push dword [eax]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00459790
lea ecx, [esi - 0x10]
add esp, 0x1c
mov dword [ebp - 0x284], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x298], eax
cmp eax, ecx
je 0x40fcd2
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40fcbd
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40fcbd
push dword [ebp - 0x298]
call fcn.00402e20
add esp, 4
mov dword [ebp - 0x298], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40fcb8
mov esi, dword [ebp - 0x284]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x298]
lea esi, [eax + 0x10]
jmp 0x40fcd2
push dword [edx - 0xc]
lea ecx, [ebp - 0x27c]
push edx
call fcn.00403fb0
mov esi, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x2a8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fcef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x29c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fd0c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x288]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fe8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40fe8f
mov ecx, dword [0x528d48]
test ecx, ecx
jne 0x40fd8d
push 0x52508c
call dword [ebp - 0x290]
cmp dword [0x528d48], 0
jne 0x40fd7c
push 8
call fcn.004571ac
mov esi, eax
add esp, 4
test esi, esi
je 0x40fd69
mov ecx, esi
call fcn.00455d20
jmp 0x40fd6b
xor esi, esi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], esi
push 0x52508c
call dword [ebp - 0x294]
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
lea edx, [ebp - 0x278]
push 0
push edx
mov eax, dword [eax + 0x30]
call eax
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x40fda7
mov edx, dword [edx]
test edx, edx
jne 0x40fdaf
xor ecx, ecx
jmp 0x40fdc3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fdb4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x27c]
call fcn.00403fb0
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40fe10
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105b1
push edx
push ecx
call fcn.00456d4c
add esp, 8
mov esi, dword [ebp - 0x27c]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40fe40
push 0x104
lea ecx, [ebp - 0x27c]
call fcn.00403e70
mov esi, dword [ebp - 0x27c]
cmp dword [esi - 8], 0x104
jl 0x4105b6
push str.logdumpuper.log
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.0049f702
add esp, 8
test eax, eax
js 0x4105b6
cmp eax, dword [esi - 8]
jg 0x4105b6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00491dd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
call fcn.00403090
mov ecx, eax
test ecx, ecx
je 0x4105c0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004064e0
test al, al
jne 0x40ff34
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ff12
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.00403fb0
mov eax, dword [0x528d04]
mov dword [ebp - 0x27c], eax
test eax, eax
jne 0x40ffbf
push 0x525070
call dword [ebp - 0x290]
cmp dword [0x528d04], 0
jne 0x40ffa9
push 0x1c
call fcn.004571ac
add esp, 4
test eax, eax
je 0x40ff97
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40ff99
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x288]
lock or dword [ecx], edx
mov dword [0x528d04], eax
push 0x525070
call dword [ebp - 0x294]
mov eax, dword [0x528d04]
mov dword [ebp - 0x27c], eax
mov edi, dword [ebp - 0x284]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100a6
push edi
call fcn.00426dc0
add esp, 4
test eax, eax
je 0x4100a6
mov ecx, dword [ebp - 0x27c]
cmp dword [ecx], 0
jne 0x41008a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x27c]
mov dword [ecx], eax
test eax, eax
je 0x4100a6
push str.HttpInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x27c]
push str.HttpUninit
push dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x27c]
push str.zlib_uncompress
push dword [ecx]
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x27c]
push str.zlib_compress
push dword [ecx]
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x27c]
push str.zlib_compressBound
push dword [ecx]
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x27c]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x41008a
call eax
mov ecx, dword [ebp - 0x27c]
mov dword [ecx + 0xc], eax
cmp dword [ecx + 8], 0
je 0x4100a6
cmp dword [ecx + 4], 0
je 0x4100a6
cmp dword [ecx + 0xc], 0
mov dword [ebp - 0x27c], 1
jne 0x4100b0
mov dword [ebp - 0x27c], 0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4100ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2a0]
push eax
call fcn.00424550
add esp, 4
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, dword [ebp - 0x29c]
mov byte [ebp - 0x27d], al
mov dword [ebp - 0x288], edx
test edx, edx
je 0x41011b
mov ecx, edi
lock xadd dword [edx + 4], ecx
jne 0x41011b
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x288]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x41011b
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x27d], 0
je 0x4102ee
lea eax, [ebp - 0x2ac]
push eax
call fcn.00424550
add esp, 4
lea ecx, [ebp - 0x344]
mov eax, dword [eax]
push 0
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x340]
push 0
push eax
mov dword [ebp - 0x344], 0x4f7960
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00409e00
mov eax, dword [ebp - 0x344]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x348], eax
mov dword [ebp - method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004571ac
add esp, 4
mov dword [ebp - 0x288], eax
test eax, eax
je 0x4101d1
push 1
mov dword [ebp - 4], 0
call fcn.0042d2f3
mov ecx, dword [ebp - 0x288]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 4], eax
jmp 0x4101d3
xor ecx, ecx
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x338]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x328]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x344]
push str.init_net:
push eax
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 4
call fcn.00404180
add esp, 8
lea ecx, [ebp - 0x344]
push dword [ebp - 0x27c]
call fcn.0040a8d0
mov ecx, dword [ebp - 0x29c]
lea edx, [ebp - 0x344]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x344]
call fcn.00405df0
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x288], ecx
test ecx, ecx
je 0x4102ee
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x4102ee
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x288]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x4102ee
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x27c], 0
jne 0x410327
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41030c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x230]
call fcn.00405720
lea ecx, [ebp - 0x248]
call fcn.00405720
jmp 0x41057e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040cda0
mov ecx, dword [0x528d48]
add esp, 8
test ecx, ecx
jne 0x410390
push 0x52508c
call dword [ebp - 0x290]
cmp dword [0x528d48], 0
jne 0x41037f
push 8
call fcn.004571ac
mov edi, eax
add esp, 4
test edi, edi
je 0x41036c
mov ecx, edi
call fcn.00455d20
jmp 0x41036e
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x288]
lock or dword [eax], ecx
mov dword [0x528d48], edi
push 0x52508c
call dword [ebp - 0x294]
mov ecx, dword [0x528d48]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [0x528ce8]
add eax, 0x10
push eax
mov dword [ebp - 0x288], eax
call dword [ebp - 0x290]
mov edi, dword [0x528d40]
test edi, edi
je 0x4103fc
cmp dword [edi + 4], 0
jle 0x4103ca
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [0x528d40]
test edi, edi
je 0x4103fc
mov eax, dword [edi]
test eax, eax
je 0x4103e3
push eax
call fcn.0049c4f7
add esp, 4
mov dword [edi], 0
push 0xc
push edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00456d4c
add esp, 8
push dword [ebp - 0x288]
mov dword [0x528d40], 0
call dword [ebp - 0x294]
mov edi, dword [0x528d3c]
test edi, edi
je 0x41045a
mov eax, dword [edi]
test eax, eax
je 0x410431
push eax
call fcn.0049c4f7
add esp, 4
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x410448
push eax
call fcn.0049c4f7
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
mov dword [edi + 8], 0
call fcn.00456d4c
add esp, 8
mov edi, dword [0x528d34]
test edi, edi
je 0x410493
cmp dword [edi], 0
je 0x410493
nop dword [eax]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41047d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi + 0x20]
push 0
mov dword [edi + 0x10], 0
call eax
add edi, 0x24
cmp dword [edi], 0
jne 0x410470
mov edi, dword [0x525010]
mov ecx, dword [0x525014]
cmp edi, ecx
jae 0x4104bd
mov eax, dword [edi]
test eax, eax
je 0x4104b6
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x525014]
add edi, 4
cmp edi, ecx
jb 0x4104a3
mov ecx, 0x528d08
call fcn.0040d290
call dword [sym.imp.ole32.dll_CoUninitialize]
add esi, 0xfffffff0
or edi, 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4104e5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x410525
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41051b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105ca
push edx
push ecx
call fcn.00456d4c
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x41057e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105cf
push edx
push ecx
call fcn.00456d4c
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045716c
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402dd0
call fcn.0049c336
call fcn.0049c336
call fcn.0049c336
push 0x80070057
call fcn.00402dd0
push 0x80004005
call fcn.00402dd0
call fcn.0049c336
call fcn.0049c336
int3