Function at 0x409870
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x425904
mov eax, dword fs:[0]
push eax
mov eax, 0x15d0
call fcn.00410330
mov eax, dword [0x431520]
xor eax, esp
mov dword [esp + 0x15cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431520]
xor eax, esp
push eax
lea eax, [esp + 0x15e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15f4]
mov esi, dword [esp + 0x15f8]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x400
lea ecx, [esp + 0x11f4]
push ecx
lea edx, [esp + 0x154]
push edx
push eax
mov dword [esp + 0x38], eax
call fcn.00402800
mov ebp, eax
add esp, 0x20
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x4099ce
push 1
push 2
lea ecx, [esp + 0xc4]
call fcn.00408fb0
push str._with_zipfile_in_unzGetCurrentFileInfo
push ebp
lea eax, [esp + 0xc4]
push str.error
push eax
mov dword [esp + 0x15fc], ebx
call fcn.00408bc0
add esp, 8
mov ecx, eax
call fcn.00408e50
push eax
call fcn.00408bc0
add esp, 8
lea ecx, [esp + 0x118c]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00406ee0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x15ec], 1
jb 0x409960
mov eax, dword [eax + 4]
jmp 0x409963
add eax, 4
push eax
push str.BaseLib::do_extract_currentfile
push 0x1b
push str..ywSMPpubZipFileSetup.cpp
push 0xf0000000
call fcn.004097d0
mov ecx, eax
call fcn.0040bdb0
cmp dword [esp + 0x11a4], esi
jb 0x40999a
mov edx, dword [esp + 0x1190]
push edx
call fcn.0040ecb6
add esp, 4
lea ecx, [esp + 0x108]
mov dword [esp + 0x15ec], 0xffffffff
call fcn.004061d0
lea eax, [esp + 0x108]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040ea59
jmp 0x409e40
cmp byte [esp + 0x11e0], bl
lea ecx, [esp + 0x11e0]
mov dword [esp + 0x1c], ecx
mov edi, ecx
je 0x409b1f
xor ebp, ebp
lea ebx, [ebx]
mov al, byte [edi]
cmp al, 0x2f
je 0x4099fe
cmp al, 0x5c
jne 0x409b0d
push ebp
lea edx, [esp + 0x11e4]
push edx
lea ecx, [esp + 0x1194]
mov dword [esp + 0x11ac], 0xf
mov dword [esp + 0x11a8], ebx
mov byte [esp + 0x1198], bl
call fcn.00401ac0
mov eax, esi
mov dword [esp + 0x15ec], 2
mov dword [esp + 0x11dc], 0xf
mov dword [esp + 0x11d8], ebx
mov byte [esp + 0x11c8], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409a55
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x11cc]
call fcn.00401ac0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1194]
push eax
lea ecx, [esp + 0x11d0]
mov byte [esp + 0x15f8], 3
call fcn.00401660
cmp dword [esp + 0x11dc], 0x10
mov eax, dword [esp + 0x11c8]
jae 0x409aa5
lea eax, [esp + 0x11c8]
push eax
call fcn.0042527e
add esp, 4
cmp dword [esp + 0x11dc], 0x10
lea ecx, [edi + 1]
mov dword [esp + 0x1c], ecx
jb 0x409acf
mov edx, dword [esp + 0x11c8]
push edx
call fcn.0040ecb6
add esp, 4
cmp dword [esp + 0x11a4], 0x10
mov dword [esp + 0x11dc], 0xf
mov dword [esp + 0x11d8], ebx
mov byte [esp + 0x11c8], bl
mov dword [esp + 0x15ec], 0xffffffff
jb 0x409b0d
mov eax, dword [esp + 0x1190]
push eax
call fcn.0040ecb6
add esp, 4
add edi, 1
add ebp, 1
cmp byte [edi], bl
jne 0x4099f0
mov ebp, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x11c0], 0xf
mov dword [esp + 0x11bc], ebx
mov byte [esp + 0x11ac], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409b40
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x11b0]
call fcn.00401ac0
lea eax, [esp + 0x11e0]
mov dword [esp + 0x15ec], 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409b70
sub eax, edx
push eax
lea ecx, [esp + 0x11e4]
push ecx
lea ecx, [esp + 0x11b0]
call fcn.00401420
mov edx, dword [esp + 0x1c]
cmp byte [edx], bl
jne 0x409bbe
cmp dword [esp + 0x11c0], 0x10
mov eax, dword [esp + 0x11ac]
jae 0x409bb0
lea eax, [esp + 0x11ac]
push eax
call fcn.0042527e
add esp, 4
jmp 0x409e29
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00402c90
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x409e25
cmp dword [esp + 0x11c0], 0x10
mov eax, dword [esp + 0x11ac]
jae 0x409bef
lea eax, [esp + 0x11ac]
push 0x42d66c
push eax
call fcn.0041031a
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
cmp edi, ebx
mov byte [esp + 0x15ec], 5
je 0x409d4d
push 0x1000
lea eax, [esp + 0x190]
push eax
push ebp
call fcn.00402ca0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jl 0x409c99
jle 0x409d4d
push edi
push 1
lea ecx, [esp + 0x194]
push esi
push ecx
call fcn.004101d4
add esp, 0x10
cmp eax, 1
je 0x409c13
push 1
push 2
lea ecx, [esp + 0x28]
call fcn.00408fb0
lea ecx, [esp + 0x20]
push str.error_in_writing_extracted_file
push ecx
mov byte [esp + 0x15f4], 8
call fcn.00408bc0
add esp, 8
lea edx, [esp + 0x118c]
push edx
lea ecx, [esp + 0x24]
call fcn.00406ee0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x15ec], 9
jb 0x409d0f
mov eax, dword [eax + 4]
jmp 0x409d12
push 1
push 2
lea ecx, [esp + 0x28]
call fcn.00408fb0
push str._with_zipfile_in_unzReadCurrentFile
push esi
lea edx, [esp + 0x28]
push str.error
push edx
mov byte [esp + 0x15fc], 6
call fcn.00408bc0
add esp, 8
mov ecx, eax
call fcn.00408e50
push eax
call fcn.00408bc0
add esp, 8
lea eax, [esp + 0x118c]
push eax
lea ecx, [esp + 0x24]
call fcn.00406ee0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x15ec], 7
jb 0x409d02
mov eax, dword [eax + 4]
push eax
push str.BaseLib::do_extract_currentfile
push 0x4d
jmp 0x409d1a
add eax, 4
push eax
push str.BaseLib::do_extract_currentfile
push 0x4d
jmp 0x409d1a
add eax, 4
push eax
push str.BaseLib::do_extract_currentfile
push 0x55
push str..ywSMPpubZipFileSetup.cpp
push 0xf0000000
call fcn.004097d0
mov ecx, eax
call fcn.0040bdb0
lea ecx, [esp + 0x118c]
call fcn.004013f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x15ec], 5
call fcn.00406440
push ebp
call fcn.00402f30
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x409e18
push 1
push 2
lea ecx, [esp + 0x28]
call fcn.00408fb0
push str._with_zipfile_in_unzCloseCurrentFile
push esi
lea eax, [esp + 0x28]
push str.error
push eax
mov byte [esp + 0x15fc], 0xa
call fcn.00408bc0
add esp, 8
mov ecx, eax
call fcn.00408e50
push eax
call fcn.00408bc0
add esp, 8
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406ee0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x15ec], 0xb
jb 0x409dc5
mov eax, dword [eax + 4]
jmp 0x409dc8
add eax, 4
push eax
push str.BaseLib::do_extract_currentfile
push 0x61
push str..ywSMPpubZipFileSetup.cpp
push 0xf0000000
call fcn.004097d0
mov ecx, eax
call fcn.0040bdb0
lea ecx, [esp + 0xa0]
call fcn.004013f0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x15ec], 5
call fcn.004061d0
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], vtable.std::ios_base.0
call fcn.0040ea59
add esp, 4
cmp edi, ebx
je 0x409e25
push edi
call fcn.0040f93b
add esp, 4
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x11c0], 0x10
jb 0x409e43
mov eax, dword [esp + 0x11ac]
push eax
call fcn.0040ecb6
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x15e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15cc]
xor ecx, esp
call fcn.0040f387
add esp, 0x15dc
ret