Function at 0x408770
Capabilities:
Download url
Get file attributes
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410eed
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0x90]
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push str.Montri
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
call fcn.0040bfe0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
push 9
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
push str.JrUtMK12.
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
call fcn.0040bfe0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push ecx
xor eax, eax
mov dword [ebp - 0xb8], 0
movups xmmword [ebp - 0xc8], xmm0
push 0x105
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov dword [ebp - 0xb0], 2
call fcn.0040a8e0
cmp dword [ebp - 0xb4], 8
lea eax, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xc8]
push eax
call fcn.0040ecc9
push ecx
push eax
lea ecx, [ebp - 0xc8]
mov esi, edx
call fcn.0040a8e0
cmp esi, 0xffffffff
jne 0x408888
mov esi, 0x14
mov dword [ebp - 0x14], 0x418044
mov dword [ebp - 0xcc], 0x418044
jmp 0x408899
mov dword [ebp - 0x14], 0x41804c
mov dword [ebp - 0xcc], 0x41804c
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xb0], 1
test esi, esi
jne 0x4093e1
mov byte [ebp - 0xcc], 0
lea ecx, [ebp - 0xe8]
push dword [ebp - 0xcc]
call fcn.0040dc50
add esp, 4
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xc8]
call fcn.00406410
mov byte [ebp - 4], 2
mov esi, eax
mov ecx, dword [ebp - 0xd4]
cmp ecx, 8
jb 0x40892e
mov edx, dword [ebp - 0xe8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408924
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408924
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
xor eax, eax
mov dword [ebp - 0xd8], 0
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
call fcn.0040a960
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xb4]
cmp ecx, 8
jb 0x40899a
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408990
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
xor eax, eax
mov dword [ebp - 0xb8], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
call fcn.004075c0
test al, al
je 0x4089cb
lea ecx, [ebp - 0x60]
call fcn.00407d10
lea ecx, [ebp - 0x60]
call fcn.00407970
lea ecx, [ebp - 0x160]
call fcn.00408500
mov dword [ebp - 0xcc], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
push ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
push dword [ebp - 0x50]
call fcn.0040a8e0
cmp dword [ebp - 0x34], 8
lea edi, [ebp - 0x48]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x60]
cmovae edi, dword [ebp - 0x48]
cmp dword [ebp - 0x4c], 8
cmovae edx, dword [ebp - 0x60]
lea edx, [edx + eax*2]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
cmp eax, edx
je 0x408a50
sub edi, eax
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x408a45
mov ecx, 0x2f
mov word [edi + eax], cx
add eax, 2
cmp eax, edx
jne 0x408a38
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x130]
push eax
call fcn.0040cf80
mov byte [ebp - 4], 7
add esp, 8
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x408aad
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408aa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408aa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x11c]
mov eax, edx
mov ecx, dword [ebp - 0x120]
sub eax, ecx
cmp eax, 1
jb 0x408b01
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x130]
jmp 0x408b18
push 1
push 0x4130dc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x130]
push 1
call fcn.0040c5e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
push dword [ebp - 0xcc]
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x118]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x14]
call fcn.0040caa0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x104]
mov eax, edx
mov ecx, dword [ebp - 0x108]
sub eax, ecx
cmp eax, 4
jb 0x408ba5
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x118]
cmovae eax, dword [ebp - 0x118]
mov dword [eax + ecx], 0x6973612e
mov byte [eax + ecx + 4], 0
lea eax, [ebp - 0x118]
jmp 0x408bbc
push 4
push str..asi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x118]
push 4
call fcn.0040c5e0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x104]
cmp ecx, 0x10
jb 0x408c31
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d0f
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0xf
mov byte [ebp - 0x118], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x134]
cmp ecx, 0x10
jb 0x408c8a
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408c80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d0f
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x408cc4
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408cba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d0f
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x14c]
cmp ecx, 0x10
jb 0x408d1f
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408d15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408d15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x412dcc
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
call fcn.00403cf0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040b4a0
mov edx, eax
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.0040af10
mov edx, str._:_Downloading_the_cheat_from_the_server...
mov ecx, eax
call fcn.00403cf0
push 0x403f10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.0040a6a0
lea ecx, [ebp - 0x178]
call fcn.00407f80
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x12
mov ecx, SysReAllocString
mov edx, dword [ebp - 0x80]
sub ecx, edx
cmp ecx, 0x3a
jb 0x4093f5
cmp dword [ebp - 0x7c], 0x10
lea eax, [ebp - 0x90]
push edx
cmovae eax, dword [ebp - 0x90]
push eax
push 0x3a
push str.https:__api.montriscript.com_shadowplay_tags_dll_username
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0xe8]
call fcn.0040cc80
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0xd4]
mov eax, edx
mov ecx, dword [ebp - 0xd8]
sub eax, ecx
push 0xa
push str.password
cmp eax, 0xa
jb 0x408e24
cmp edx, 0x10
lea esi, [ebp - 0xe8]
lea eax, [ecx + 0xa]
cmovae esi, dword [ebp - 0xe8]
add esi, ecx
mov dword [ebp - 0xd8], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xa], 0
lea eax, [ebp - 0xe8]
jmp 0x408e34
push dword [ebp - 0x14]
lea ecx, [ebp - 0xe8]
push 0xa
call fcn.0040c5e0
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb8], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x78]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
mov esi, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x78]
cmovae ecx, eax
mov dword [ebp - 0xcc], eax
mov eax, esi
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x408ee9
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xc8]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
lea eax, [ebp - 0xc8]
mov edi, dword [ebp - 0xcc]
add esp, 0xc
jmp 0x408f04
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc8]
push edi
call fcn.0040c5e0
mov ecx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0xb0], ecx
xorps xmm0, xmm0
mov dword [ebp - 0xf0], 0
movups xmmword [ebp - 0x100], xmm0
mov dword [ebp - 0xec], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x100], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0xec]
mov eax, edx
mov ecx, dword [ebp - 0xf0]
sub eax, ecx
push 0xc
push str.macaddress
cmp eax, 0xc
jb 0x408f9a
cmp edx, 0x10
lea esi, [ebp - 0x100]
lea eax, [ecx + 0xc]
cmovae esi, dword [ebp - 0x100]
add esi, ecx
mov dword [ebp - 0xf0], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xc], 0
lea eax, [ebp - 0x100]
jmp 0x408faa
push dword [ebp - 0x14]
lea ecx, [ebp - 0x100]
push 0xc
call fcn.0040c5e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xa8]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 0x16
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.0040caa0
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x134]
cmp ecx, 0x10
jb 0x40902c
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409022
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409163
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0xec]
cmp ecx, 0x10
jb 0x40906a
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409060
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409163
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0x10
jb 0x4090c3
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4090b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409163
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0x10
jb 0x409118
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40910e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409163
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x164]
cmp ecx, 0x10
jb 0x409173
mov edx, dword [ebp - 0x178]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409169
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409169
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
push 0
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0x10
push 0
cmovae eax, dword [ebp - 0xa8]
push ecx
push eax
push 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
js 0x409269
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x4091ef
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
or eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x412dcc
call fcn.00403cf0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040b4a0
mov edx, eax
mov byte [ebp - 4], 0x1d
mov ecx, esi
call fcn.0040af10
mov edx, 0x412dc0
mov ecx, eax
call fcn.00403cf0
mov edx, str.Server_connection_successful_
mov ecx, eax
call fcn.00403cf0
push 0x403f10
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call fcn.0040a6a0
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
mov ecx, 0x418054
push eax
call fcn.0040ac20
mov byte [ebp - 0xa9], 1
jmp 0x409270
mov byte [ebp - 0xa9], 0
mov ecx, dword [ebp - 0x94]
cmp ecx, 0x10
jb 0x4092aa
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4092a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093b0
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp ecx, 0x10
jb 0x4092f9
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4092ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093b0
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 8
jb 0x409341
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409337
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093b0
push ecx
push edx
call fcn.0040ef56
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x4c], 7
cmp eax, 0x10
jb 0x409387
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40937d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093b0
push ecx
push edi
call fcn.0040ef56
add esp, 8
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x4093c0
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4093b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ef56
add esp, 8
mov al, byte [ebp - 0xa9]
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.0040ef13
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc8]
mov ecx, str.temp_directory_path
push eax
lea edx, [ebp - 0x18]
call fcn.00406ef0
call fcn.00401e70
int3