Function at 0x421940
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e8
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
cmp dword [esi + 0x58], 0
je 0x422191
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
push 0x59f884
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0xa4], xmm0
call fcn.0040d5d0
lea eax, [esi + 0x48]
mov dword [ebp - 4], 0
cmp dword [eax + 0x10], 0
je 0x421a3b
cmp dword [ebp - 0x94], 0
je 0x421a3b
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x1f8]
call fcn.0044a1a0
mov edi, eax
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 7
jbe 0x4219f8
mov edi, dword [edi]
lea edx, [esi + 0x48]
lea ecx, [ebp - 0x1e0]
call fcn.0044a1a0
cmp dword [eax + 0x14], 7
jbe 0x421a0e
mov eax, dword [eax]
push 0x40
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
add esp, 0xc
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x1e0]
mov edi, eax
call fcn.0041c760
lea ecx, [ebp - 0x1f8]
call fcn.0041c760
jmp 0x421a43
xor edi, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x421a86
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421a7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x421a7c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
test edi, edi
je 0x422191
push 0
lea ecx, [ebp - 0x28]
call fcn.00423f00
push 0
mov dword [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub esp, 0xc
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x64], esp
mov ecx, esp
mov dword [ebp - 0x84], edx
push eax
call fcn.0042a390
push str.update_time
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00423ab0
sub esp, 0x10
lea eax, [esi + 0x28]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.0042a440
push str.file_size
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00423ab0
sub esp, 0x10
lea eax, [esi + 0x30]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.0042a4f0
push str.content_md5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00423ab0
mov eax, dword [esi + 0x74]
sub esp, 0x10
add eax, 0x100
mov dword [ebp - 0x64], esp
mov ecx, esp
push eax
call fcn.0042a4f0
push 0x59f560
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00423ab0
sub esp, 0x10
lea eax, [esi + 0x10]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.0042a4f0
push str.redirect_url
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00423ab0
mov eax, dword [esi + 0x6c]
add eax, 0x18
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a090
sub esp, 0x10
mov byte [ebp - 4], 8
mov edi, esp
mov dword [ebp - 0x84], esp
lea esi, [edi + 8]
mov dword [ebp - 0x5c], edi
xorps xmm0, xmm0
mov ecx, esi
mov byte [edi], 0
movq qword [esi], xmm0
movzx eax, byte [edi]
push eax
call fcn.00425c50
push 0x18
mov byte [edi], 3
call fcn.00563322
movups xmm0, xmmword [ebp - 0x40]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x64], ecx
mov byte [ebp - 0x40], 0
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ecx + 0x10], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
test ecx, ecx
jne 0x421c46
push 0x4495
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.obj___nullptr
call edi
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov eax, dword [ebp - 0x74]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi], ecx
cmp byte [eax], 1
jne 0x421c71
test ecx, ecx
jne 0x421c71
push 0x45b2
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::object__m_value.object___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 2
jne 0x421c92
cmp dword [esi], 0
jne 0x421c92
push 0x45b3
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::array__m_value.array___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 3
jne 0x421cb3
cmp dword [esi], 0
jne 0x421cb3
push 0x45b4
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::string__m_value.string___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 8
jne 0x421cd4
cmp dword [esi], 0
jne 0x421cd4
push 0x45b5
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::binary__m_value.binary___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 1
jne 0x421cf5
cmp dword [esi], 0
jne 0x421cf5
push 0x45b2
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::object__m_value.object___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 2
jne 0x421d16
cmp dword [esi], 0
jne 0x421d16
push 0x45b3
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::array__m_value.array___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 3
jne 0x421d37
cmp dword [esi], 0
jne 0x421d37
push 0x45b4
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::string__m_value.string___nullptr
call edi
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp byte [eax], 8
jne 0x421d55
cmp dword [esi], 0
jne 0x421d55
push 0x45b5
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::binary__m_value.binary___nullptr
call edi
add esp, 0xc
push str.target_tmp_file_path
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00429980
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00423ab0
lea ecx, [ebp - 0x40]
call fcn.00409f80
push 0
lea ecx, [ebp - 0x38]
call fcn.00423f00
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xa
mov edi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x6c], eax
cmp edi, eax
je 0x422034
nop dword [eax + eax]
push str.index
lea ecx, [ebp - 0xd8]
call fcn.00432670
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
mov esi, dword [eax + 8]
mov byte [ebp - 0xc0], 0
movq qword [ebp - 0xb8], xmm0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xb8]
push dword [ebp - 0xc0]
call fcn.00425c50
mov eax, esi
mov byte [ebp - 0xc0], 5
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], 0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
sub esp, 8
lea ecx, [ebp - 0x1c8]
call fcn.00426a60
mov dword [ebp - 0x1b8], 0
push str.begin
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xd
call fcn.00432670
mov eax, dword [edi]
mov dword [ebp - 0x158], 0
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x150]
push eax
call fcn.0042a390
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x168]
push eax
sub esp, 8
lea ecx, [ebp - 0x1b0]
call fcn.00426a60
mov dword [ebp - 0x1a0], 0
push 0x59f588
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xf
call fcn.00432900
mov eax, dword [edi]
mov dword [ebp - 0x128], 0
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x120]
push eax
call fcn.0042a390
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x138]
push eax
sub esp, 8
lea ecx, [ebp - 0x198]
call fcn.00426a60
mov dword [ebp - 0x188], 0
push str.capacity
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x11
call fcn.00432b10
mov eax, dword [edi]
mov dword [ebp - 0xf8], 0
movq xmm0, qword [eax + 0x20]
movq qword [ebp - 0x60], xmm0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
nop
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0xf0]
push eax
call fcn.0042a390
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x108]
push eax
sub esp, 8
lea ecx, [ebp - 0x180]
call fcn.00426a60
mov dword [ebp - 0x170], 0
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00423360
push 0x4221c0
push 4
push 0x18
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 0x15
push eax
call fcn.0056339d
push 0x4221c0
push 2
push 0x18
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x14
push eax
call fcn.0056339d
push 0x4221c0
push 2
push 0x18
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0x13
push eax
call fcn.0056339d
push 0x4221c0
push 2
push 0x18
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0xc
push eax
call fcn.0056339d
push 0x4221c0
push 2
push 0x18
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
call fcn.0056339d
add edi, 8
cmp edi, dword [ebp - 0x6c]
jne 0x421da0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x80]
call fcn.00423b50
push str.slices
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x17
call fcn.00429980
push 1
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.00426f90
mov dl, byte [edi]
mov cl, byte [ebp - 0x80]
mov byte [edi], cl
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov byte [ebp - 0x80], dl
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov ecx, edi
mov dword [edi + 8], eax
push 1
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], esi
call fcn.00426f90
push 0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x18
call fcn.00426f90
push dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
call fcn.00425c50
sub esp, 0x10
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.00423760
mov edi, dword [ebp - 0x8c]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
push 0xe
push 1
push str.TMP:FILE_SLICE
call esi
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push edi
push dword [ebp - 0x48]
cmova eax, dword [ebp - 0x58]
push 1
push eax
call esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x24
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x422110
push 0xc2
push str.D:PROVINCEprovince.launcherBackendVendor_teemo_src_file_util.cpp
push str.err__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x422146
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42213c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42213c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x19
call fcn.00426f90
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.00425c50
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0x1a
call fcn.00426f90
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.00425c50
mov al, 1
jmp 0x422193
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret