Function at 0x10085240
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x1024a921
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
push ebx
push esi
push edi
mov esi, ecx
mov edx, dword [ebp + 0x6c]
mov dword [ebp - 4], 0
mov eax, dword [edx + 0x58]
mov ecx, dword [edx + 0x5c]
mov dword [ebp - 0x48], eax
mov dword [ebp + 0x18], eax
mov eax, dword [edx + 0x70]
mov dword [ebp + 0x50], eax
mov eax, dword [edx + 0x74]
mov dword [ebp - 0x40], ecx
mov dword [ebp + 0x10], ecx
xor ecx, ecx
mov dword [ebp + 0x4c], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x40], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov eax, dword [esi + 0xb0]
xor edi, edi
mov ecx, dword [esi + 0xac]
sub eax, ecx
sar eax, 2
movlpd qword [ebp + 0x30], xmm0
mov ebx, dword [ebp + 0x34]
movlpd qword [ebp - 0x20], xmm0
test eax, eax
je 0x10085406
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ecx + edi*4]
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x1008533f
mov ecx, dword [ebp + 0x40]
cmp dword [ebp - 0x10], ecx
je 0x10085305
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [ebp + 0x40], ecx
mov dword [ebp - 0x14], ecx
jmp 0x10085318
lea eax, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.10020da0
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x40], eax
mov edx, dword [ebp + 0x3c]
add edx, dword [ebp - 0x20]
mov eax, dword [esi + 0xb0]
adc ebx, dword [ebp - 0x1c]
inc edi
mov ecx, dword [esi + 0xac]
sub eax, ecx
sar eax, 2
mov dword [ebp + 0x3c], edx
cmp edi, eax
jb 0x100852d5
jmp 0x10085409
mov eax, dword [esi]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 7
mov edi, dword [eax + 0x30]
xor eax, eax
push eax
push 0x10255fec
mov word [ebp - 0x118], ax
call fcn.1001a600
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x118]
push ecx
push eax
mov ecx, esi
call edi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
mov bl, al
call fcn.1001a5a0
test bl, bl
je 0x100853a4
mov bl, 1
jmp 0x10086043
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x120], 0
xor eax, eax
mov dword [ebp - 0x11c], 7
push eax
push 0x10255fec
lea ecx, [ebp - 0x130]
mov word [ebp - 0x130], ax
call fcn.1001a600
push edi
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x130]
call fcn.1001a5a0
xor bl, bl
jmp 0x10086043
mov edx, dword [ebp + 0x30]
cmp ebx, dword [ebp + 0x4c]
ja 0x1008541d
jb 0x100854e1
cmp edx, dword [ebp + 0x50]
jb 0x100854e1
mov eax, dword [ebp + 0x6c]
xor ebx, ebx
mov edi, dword [ebp + 0x40]
mov dword [ebp + 0x54], ebx
mov ecx, dword [eax + 0x68]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0x18]
sub edi, eax
sar edi, 3
mov dword [ebp + 0x40], edi
test edi, edi
je 0x10086069
mov edi, dword [eax + ebx*8]
mov ebx, dword [eax + ebx*8 + 4]
cmp edx, ebx
jb 0x100854e8
ja 0x1008545a
cmp ecx, edi
jb 0x100854e8
mov eax, dword [ebp + 0x54]
inc dword [ebp + 0x54]
cmp dword [ebp + 0x40], eax
jbe 0x10086069
mov eax, dword [esi + 0xb0]
sub ecx, edi
sbb edx, ebx
sub eax, dword [esi + 0xac]
mov ebx, dword [ebp + 0x54]
sar eax, 2
cmp ebx, eax
jae 0x10085491
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x40], ebx
jbe 0x10086069
jmp 0x10085441
cmp dword [esi + 0x128], 8
lea eax, [esi + 0x114]
jb 0x100854a2
mov eax, dword [eax]
push ebx
push str..part
push eax
lea eax, [ebp - 0x1a8]
push str._s_s_d
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x14
push 2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a8]
mov eax, dword [esi]
push ecx
push 0x10000002
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x1a8]
call fcn.1001a5a0
xor bl, bl
jmp 0x10086043
xorps xmm0, xmm0
mov dword [ebp + 8], 0
push 0x80000
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x58], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x4c], 0
call fcn.1006e70d
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0x80000
mov dword [ebp + 0x30], vtable.WM::GMFile.0
mov dword [ebp + 0x34], 0xffffffff
mov eax, dword [ebp + 0x50]
lea edx, [ebp + 0x44]
mov ebx, dword [ebp + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x4c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xac]
movlpd qword [ebp + 0x44], xmm0
push edx
mov byte [ebp + 0x5e], 0
mov ecx, dword [eax + ebx*4]
mov byte [ebp + 0x5f], 0
mov dword [ebp + 0x28], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x100855cf
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x138], 0
xor eax, eax
mov dword [ebp - 0x134], 7
push eax
push 0x10255fec
lea ecx, [ebp - 0x148]
mov word [ebp - 0x148], ax
call fcn.1001a600
push edi
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 7
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.1001a5a0
mov ebx, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x6c]
mov edi, dword [ecx + 0x68]
mov edx, dword [ecx + 0x6c]
cmp dword [ebp + 0x44], edi
jne 0x100855e2
cmp dword [ebp + 0x48], edx
je 0x1008561d
mov ecx, dword [esi + 0xa8]
lea ebx, [ebp + 0x44]
push ebx
push 0
push edx
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0x18]
call eax
mov ebx, dword [ebp + 0x54]
test al, al
je 0x10086004
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x44]
cmp eax, dword [ecx + 0x68]
jne 0x10086004
mov eax, dword [ebp + 0x48]
cmp eax, dword [ecx + 0x6c]
jne 0x10086004
mov edi, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x50]
test edi, edi
jne 0x1008562f
test edx, edx
je 0x10085fa5
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x58], ecx
jmp 0x10085653
mov edi, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], 0
test edi, edi
jb 0x1008566f
ja 0x10085668
cmp edx, 0x80000
jbe 0x1008566f
mov edi, 0x80000
jmp 0x10085671
mov edi, edx
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x50]
add eax, ecx
lea ecx, [ebp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x28]
push edi
push eax
call edx
test al, al
je 0x10085f47
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x3c]
sub eax, ecx
mov edx, dword [ebp + 0x58]
sbb dword [ebp + 0x4c], 0
add edx, ecx
mov dword [ebp + 0x50], eax
or eax, dword [ebp + 0x4c]
mov dword [ebp + 0x58], edx
je 0x100858f4
cmp edx, 0x80000
jae 0x100857cf
cmp ecx, edi
mov ecx, edx
mov edx, dword [ebp + 0x50]
jae 0x10085650
mov eax, dword [esi + 0xb0]
lea edx, [ebx + 1]
mov ecx, dword [esi + 0xac]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x10085e26
mov edi, edx
lea edx, [ebp + 0x44]
push edx
mov dword [ebp + 0x54], edi
mov ecx, dword [ecx + edi*4]
mov dword [ebp + 0x28], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x1008575e
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14c], 7
push eax
push 0x10255fec
lea ecx, [ebp - 0x160]
mov word [ebp - 0x160], ax
call fcn.1001a600
push edi
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 0xe
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 6
call fcn.1001a5a0
mov edi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x44]
or eax, dword [ebp + 0x48]
je 0x10085791
mov ecx, dword [esi + 0xa8]
lea edx, [ebp + 0x44]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x10086004
mov eax, dword [ebp + 0x44]
or eax, dword [ebp + 0x48]
jne 0x10086004
cmp dword [ebp + 0x40], edi
jbe 0x10086069
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ebx, dword [ebp + 0x58]
mov ecx, ebx
add ecx, dword [edx + edi*8]
adc eax, dword [edx + edi*8 + 4]
test eax, eax
ja 0x100858f7
jb 0x100857c1
cmp ecx, 0x80000
ja 0x100858f7
mov ebx, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x50]
jmp 0x10085650
mov ecx, dword [ebp + 0x28]
lea edx, [ebp + 0x44]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x10085822
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10255fec
lea ecx, [ebp - 0x1c0]
mov edi, eax
call fcn.1001a2f0
push edi
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0xa
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
call fcn.1001a5a0
mov edi, dword [ebp + 0x54]
cmp dword [ebp + 0x40], edi
jbe 0x10086069
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x44]
cmp eax, dword [ecx + edi*8]
jne 0x100858f4
mov eax, dword [ebp + 0x48]
cmp eax, dword [ecx + edi*8 + 4]
jne 0x100858f4
mov eax, dword [esi + 0xb0]
lea edx, [edi + 1]
mov ecx, dword [esi + 0xac]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x10085e79
mov eax, edx
lea edx, [ebp + 0x44]
mov dword [ebp + 0x54], eax
push edx
mov ecx, dword [ecx + eax*4]
mov dword [ebp + 0x28], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x100858c1
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10255fec
lea ecx, [ebp - 0x1d8]
mov edi, eax
call fcn.1001a2f0
push edi
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 0xc
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 6
call fcn.1001a5a0
mov eax, dword [ebp + 0x44]
or eax, dword [ebp + 0x48]
je 0x100858f4
mov ecx, dword [esi + 0xa8]
lea edx, [ebp + 0x44]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x10086004
mov eax, dword [ebp + 0x44]
or eax, dword [ebp + 0x48]
jne 0x10086004
mov ebx, dword [ebp + 0x58]
cmp byte [esi + 0xf4], 0
jne 0x10086004
xor edi, edi
mov dword [ebp + 4], 0
test ebx, ebx
je 0x10085e07
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x1008592e
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1008592e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x70]
mov byte [ebp - 0x2c], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
jg 0x1008594b
jl 0x10085947
cmp dword [ebp + 0x18], eax
ja 0x1008594b
mov byte [ebp - 0x2c], 1
mov ecx, dword [ebp + 0x70]
lea ebx, [ebp + 4]
push dword [ebp - 0x2c]
push ebx
mov eax, dword [ecx]
mov ebx, dword [ebp + 0x58]
push ebx
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x50]
add eax, edi
push eax
call edx
test al, al
je 0x10085f1f
mov ecx, dword [ebp + 0x70]
add edi, dword [ebp + 4]
sub ebx, dword [ebp + 4]
mov dword [ebp - 0x30], edi
mov eax, dword [ecx]
mov dword [ebp + 0x58], ebx
call dword [eax + 0x10]
test eax, eax
je 0x10085dff
mov ecx, dword [ebp + 0x70]
lea edx, [ebp + 0x38]
mov dword [ebp + 0x38], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
movlpd qword [ebp + 0x1c], xmm0
test eax, eax
je 0x10085df7
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x10085df7
mov eax, dword [ebp + 0x20]
sub dword [ebp + 0x18], ecx
mov ebx, dword [ebp + 8]
sbb dword [ebp + 0x10], 0
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jae 0x10086004
mov edi, dword [ecx + ebx*8]
mov ecx, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x10085a03
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push edi
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.100200c0
lea eax, [edi + 0xc]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0xf4]
call fcn.1001a380
lea eax, [edi + 0x24]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0xdc]
call fcn.1001a380
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x88]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xc4], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x44]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0xb8], eax
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0xb4], eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0xac], eax
mov eax, dword [edi + 0x58]
mov dword [ebp - 0xa8], eax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0xa4], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0xa0], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x78]
push eax
mov dword [ebp - 0x88], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.10020a40
mov eax, dword [edi + 0x88]
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x8c]
mov dword [ebp - 0x74], eax
cmp byte [ebp + 0x5e], 0
mov byte [ebp - 4], 0x13
jne 0x10085c4a
lea eax, [ebp - 0xdc]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x10085b61
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMUnpacker::RemoveOrRenameFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
test al, al
jne 0x10085b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
lea eax, [ebp - 0xdc]
push eax
push edi
mov edx, dword [ecx + 0x30]
mov ecx, esi
call edx
test al, al
jne 0x10085bca
push edi
lea ecx, [ebp - 0xdc]
push ecx
push 0x10000004
jmp 0x10085bb9
cmp byte [ebp + 0x5f], 0
jne 0x10085bce
mov eax, dword [ebp - 0xac]
lea ecx, [ebp + 0x30]
or eax, 0x8000000
push eax
push 4
push 1
push 0x40000000
lea eax, [ebp - 0xdc]
push eax
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
jne 0x10085bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
lea eax, [ebp - 0xdc]
push eax
push edi
mov edx, dword [ecx + 0x30]
mov ecx, esi
call edx
test al, al
jne 0x10085bca
push edi
lea ecx, [ebp - 0xdc]
push ecx
push 0x10000001
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x10085f05
mov byte [ebp + 0x5f], 1
cmp dword [ebp - 0x90], 0
jne 0x10085bff
cmp dword [ebp - 0x8c], 0
jne 0x10085bff
mov eax, dword [ebp - 0xa8]
add dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xa4]
adc ebx, ecx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0xc], ebx
jmp 0x10085c1d
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x40]
sbb ebx, dword [ebp + 0xc]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x100]
push 0
push dword [ebp + 4]
mov byte [ebp + 0x5e], 1
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x10085c4a
mov eax, dword [ecx]
lea edx, [ebp - 0x100]
push edx
call dword [eax + 8]
cmp byte [ebp + 0x5f], 0
mov ebx, dword [ebp + 0x24]
mov dword [ebp], 0
jne 0x10085ca8
mov eax, ebx
or eax, dword [ebp + 0x2c]
je 0x10085ca8
mov edi, dword [ebp + 0x38]
cmp ebx, edi
mov ecx, dword [ebp - 0x3c]
cmovb edi, ebx
add ecx, dword [ebp + 0x20]
je 0x10085ecc
mov eax, dword [ebp + 0x34]
cmp eax, 0xffffffff
je 0x10085ecc
push 0
lea edx, [ebp]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10085ecc
mov eax, dword [ebp]
cmp edi, eax
jne 0x10085ecc
mov ecx, dword [ebp + 0x38]
jmp 0x10085cb5
mov ecx, dword [ebp + 0x38]
cmp ebx, ecx
mov eax, ecx
cmovb eax, ebx
mov dword [ebp], eax
cmp ebx, eax
jne 0x10085d62
cmp dword [ebp + 0x2c], 0
jne 0x10085d62
mov ebx, dword [ebp + 8]
sub ecx, eax
inc ebx
mov dword [ebp + 0x38], ecx
add dword [ebp + 0x20], eax
mov eax, dword [ebp - 0xb4]
adc dword [ebp + 0x3c], 0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 8], ebx
cmp eax, 0xffffffff
je 0x10085d4a
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp + 0x34]
cmp eax, 0xffffffff
je 0x10085d4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x34]
test eax, eax
mov eax, 0xffffffff
cmovne ecx, eax
mov dword [ebp + 0x34], ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x100]
push ecx
mov ecx, esi
mov byte [ebp + 0x5e], 0
mov byte [ebp + 0x5f], 0
call dword [eax + 0x28]
jmp 0x10085d89
sub ebx, eax
mov dword [ebp + 0x38], 0
xorps xmm0, xmm0
mov dword [ebp + 0x24], ebx
sbb dword [ebp + 0x2c], 0
movlpd qword [ebp + 0x1c], xmm0
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x20], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], vtable.WM::GMBuffer_unsigned_char_.0
test eax, eax
je 0x10085daa
push eax
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0xdc]
call fcn.1001a5a0
lea ecx, [ebp - 0xf4]
call fcn.1001a5a0
lea ecx, [ebp - 0x100]
call fcn.100203e0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.1001eb30
cmp dword [ebp + 0x38], 0
ja 0x100859d1
mov eax, dword [ebp + 4]
add dword [esi + 0x108], eax
mov ebx, dword [ebp + 0x58]
adc dword [esi + 0x10c], 0
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x70]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test ebx, ebx
jne 0x10085915
mov edi, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x50]
test edi, edi
jne 0x10085e19
test edx, edx
je 0x10085fa5
mov ebx, dword [ebp + 0x54]
xor ecx, ecx
mov dword [ebp + 0x58], ecx
jmp 0x10085653
cmp dword [esi + 0x128], 8
lea ecx, [esi + 0x114]
jb 0x10085e37
mov ecx, dword [ecx]
lea eax, [ebx + 1]
push eax
push str..part
push ecx
lea eax, [ebp - 0x1f0]
push str._s_s_d
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x14
push 2
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1f0]
mov eax, dword [esi]
push ecx
push 0x10000002
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x1f0]
jmp 0x10085fff
cmp dword [esi + 0x128], 8
lea ecx, [esi + 0x114]
jb 0x10085e8a
mov ecx, dword [ecx]
lea eax, [edi + 1]
push eax
push str..part
push ecx
lea eax, [ebp - 0x208]
push str._s_s_d
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x14
push 2
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x208]
mov eax, dword [esi]
push ecx
push 0x10000002
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x208]
jmp 0x10085fff
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [eax + 0x30]
call ebx
lea ecx, [ebp - 0xdc]
push ecx
push eax
mov ecx, esi
call edi
test al, al
je 0x10085eed
mov bl, 1
jmp 0x10085f07
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
call ebx
push eax
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
push 0x10000003
call edi
xor bl, bl
lea ecx, [ebp - 0x100]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMTocNode::destructor_void_
lea ecx, [ebp - 0x24]
call fcn.1001eb30
jmp 0x10086006
mov eax, dword [ebp + 0x6c]
mov edx, dword [esi]
mov ecx, dword [eax + 0x68]
sub ecx, dword [ebp + 0x50]
mov eax, dword [eax + 0x6c]
sbb eax, dword [ebp + 0x4c]
add ecx, dword [ebp - 0x44]
adc eax, dword [ebp - 0x38]
push eax
push ecx
push 0x30000003
mov ecx, esi
call dword [edx + 0x38]
jmp 0x10086004
mov eax, dword [esi]
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov edi, dword [eax + 0x30]
xor eax, eax
push eax
push 0x10255fec
mov word [ebp - 0x178], ax
call fcn.1001a600
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x178]
push ecx
push eax
mov ecx, esi
call edi
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 6
mov bl, al
call fcn.1001a5a0
test bl, bl
je 0x10085fa9
mov bl, 1
jmp 0x10086006
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x180], 0
xor eax, eax
mov dword [ebp - 0x17c], 7
push eax
push 0x10255fec
lea ecx, [ebp - 0x190]
mov word [ebp - 0x190], ax
call fcn.1001a600
push edi
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 9
push eax
push 0x10000002
mov ecx, esi
call ebx
lea ecx, [ebp - 0x190]
call fcn.1001a5a0
xor bl, bl
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x1008602c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x34]
test eax, eax
mov eax, 0xffffffff
cmovne ecx, eax
mov dword [ebp + 0x34], ecx
mov eax, dword [ebp - 0x50]
mov dword [ebp + 0x30], vtable.WM::GMBaseFile.0
test eax, eax
je 0x10086043
push eax
call fcn.1006e708
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.10020230
lea ecx, [ebp + 0x74]
call fcn.1001eb30
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x60]
pop ebp
ret 0x10
call fcn.10020220
int3