Function at 0x415150
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50060c
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
jmp 0x4151b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4151b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403a70
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ebx, 2
push eax
jne 0x41521a
lea ecx, [ebp - 0x40]
call fcn.004133c0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], ecx
jmp 0x4157d2
lea ecx, [ebp - 0x70]
call fcn.004133c0
push 0x2f
push 0x5c
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00451a60
add esp, 0x10
lea ecx, [ebp - 0x70]
push eax
call fcn.00405690
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x415288
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41527e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41527e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
xor ecx, ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xac], eax
mul ebx
mov dword [ebp - 0x8c], 7
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c6f7d
mov ecx, dword [ebp - 0xac]
lea ebx, [ebp - 0x70]
add esp, 4
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x5c], 8
cmovae ebx, dword [ebp - 0x70]
xor esi, esi
xor edx, edx
mov dword [ebp - 0xb0], ebx
or edi, 0xffffffff
mov dword [ebp - 0xa4], esi
test ecx, ecx
jle 0x4155ac
movzx eax, word [ebx + edx*2]
cmp eax, 0x2f
jne 0x41551c
mov ecx, dword [ebp - 0xac]
dec ecx
cmp edx, ecx
jge 0x415332
lea eax, [edx + 1]
lea eax, [ebx + eax*2]
mov edi, edi
cmp word [eax], 0x2f
jne 0x415332
test edx, edx
je 0x415332
inc edx
add eax, 2
cmp edx, ecx
jl 0x415320
xor bl, bl
cmp edx, ecx
jge 0x4154ae
mov eax, dword [ebp - 0xb0]
cmp word [eax + edx*2 + 2], 0x2e
jne 0x4154ae
mov eax, dword [ebp - 0xac]
mov esi, 1
mov ecx, dword [ebp - 0xb0]
add eax, 0xfffffffe
cmp edx, eax
jge 0x415374
cmp word [ecx + edx*2 + 4], 0x2e
mov eax, 2
cmove esi, eax
mov eax, dword [ebp - 0xac]
sub eax, esi
dec eax
cmp edx, eax
jne 0x4153a2
cmp esi, 1
je 0x4155a6
cmp dword [ebp - 0xbc], 0
jne 0x41556c
mov esi, dword [ebp - 0xa4]
jmp 0x4154f7
lea eax, [esi + edx]
cmp word [ecx + eax*2 + 2], 0x2f
jne 0x4154a6
cmp esi, 2
jne 0x415486
cmp dword [ebp - 0xbc], 0
je 0x41544b
mov ecx, dword [ebp - 0xa4]
cmp edi, 0xffffffff
je 0x4153db
mov eax, ecx
sub eax, edi
cmp eax, 1
jne 0x41541b
cmp edi, 0xffffffff
mov eax, ecx
cmovne eax, edi
sub eax, 1
js 0x415494
lea esp, [esp]
mov ecx, dword [ebp - 0xa8]
cmp word [ecx + eax*2], 0x2f
mov ecx, dword [ebp - 0xa4]
je 0x415419
sub eax, 1
jns 0x4153f0
lea eax, [esi + edx]
test bl, bl
mov esi, ecx
cmove eax, edx
mov edx, eax
jmp 0x4154c5
mov edi, eax
dec dword [ebp - 0xbc]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xa4], edi
add dword [ebp - 0xb8], eax
mov bl, 1
or edi, 0xffffffff
lea eax, [esi + edx]
mov esi, dword [ebp - 0xa4]
test bl, bl
cmove eax, edx
mov edx, eax
jmp 0x4154c5
test edx, edx
jle 0x415494
cmp word [ecx + edx*2 - 2], 0x2e
je 0x415494
xor ecx, ecx
mov bl, 1
test edi, edi
cmovg ecx, edi
inc edx
mov eax, ecx
or edi, 0xffffffff
sub eax, dword [ebp - 0xa4]
add dword [ebp - 0xb8], eax
test bl, bl
lea eax, [esi + edx]
mov dword [ebp - 0xa4], ecx
cmove eax, edx
mov esi, ecx
mov edx, eax
jmp 0x4154c5
cmp esi, 1
movzx ebx, bl
mov eax, 1
cmove ebx, eax
lea eax, [esi + edx]
test bl, bl
mov esi, dword [ebp - 0xa4]
cmove eax, edx
mov edx, eax
jmp 0x4154c5
mov esi, dword [ebp - 0xa4]
jmp 0x4154f1
cmp edi, 0xffffffff
je 0x4154f1
mov eax, esi
sub eax, edi
cmp eax, 1
jne 0x4154ed
cmp esi, 2
setg bl
or edi, 0xffffffff
test bl, bl
je 0x4154f7
mov ebx, dword [ebp - 0xb0]
inc edx
cmp edx, dword [ebp - 0xac]
jge 0x4155a6
mov esi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
jmp 0x415300
cmp edx, ecx
je 0x4154c9
inc dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xb0]
mov edi, esi
mov ecx, dword [ebp - 0xa8]
mov ax, word [ebx + edx*2]
mov word [ecx + esi*2], ax
inc esi
inc dword [ebp - 0xb8]
mov dword [ebp - 0xa4], esi
jmp 0x4154cf
test edx, edx
jne 0x4154ff
cmp eax, 0x2e
jne 0x4154ff
cmp word [ebx + 2], 0x2e
lea eax, [edx + 1]
jne 0x415538
mov eax, 2
cmp ecx, eax
jl 0x4154ff
cmp word [ebx + eax*2], 0x2f
jne 0x4154ff
cmp eax, 1
jne 0x4154ff
lea esi, [ecx - 1]
mov edx, eax
cmp esi, 2
jle 0x4154cf
lea ecx, [eax + 1]
lea eax, [ebx + 4]
cmp word [eax], 0x2f
jne 0x4154cf
inc ecx
inc edx
add eax, 2
cmp ecx, esi
jl 0x415554
jmp 0x4154cf
cmp edi, 0xffffffff
jne 0x415591
mov eax, dword [ebp - 0xa4]
add eax, edi
js 0x415591
mov ecx, dword [ebp - 0xa8]
cmp word [ecx + eax*2], 0x2f
je 0x41558f
sub eax, 1
jns 0x415581
jmp 0x415591
mov edi, eax
mov eax, dword [ebp - 0xb8]
sub edi, dword [ebp - 0xa4]
inc eax
add eax, edi
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb8]
cmp ecx, dword [ebp - 0xac]
jne 0x4155cf
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.004133c0
mov ecx, eax
mov edx, 2
jmp 0x4155ff
push ecx
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
call fcn.00403a70
lea ecx, [ebp - 0x88]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 3
test dl, 4
je 0x415693
and edx, 0xfffffffb
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x41568d
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415683
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4157c2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 4
test dl, 2
je 0x4156f3
and edx, 0xfffffffd
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4156df
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4156d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4157c2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp esi, 1
jbe 0x415762
lea ecx, [esi - 1]
cmp esi, ecx
jbe 0x415d21
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, ebx
cmp word [eax + ecx*2], 0x2f
jne 0x415762
cmp esi, 3
jne 0x41572a
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, ebx
cmp word [eax + 2], 0x3a
je 0x415762
jmp 0x41572f
cmp esi, 1
jb 0x415747
cmp edi, 8
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x40]
cmovae eax, ebx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x415759
mov eax, 1
lea ecx, [ebp - 0x40]
push 0
sub eax, esi
push eax
call fcn.0041a550
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0xa8]
call fcn.004c6f86
mov eax, dword [ebp - 0x3c]
add esp, 4
or dword [ebp - 0xa4], 1
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4157d2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4157c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4157c8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41580c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415802
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415cf3
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xac]
push 0x5c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push 0x2f
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.00451a60
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4158d5
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41588b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415881
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415901
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x415911
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415907
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417670
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4159ba
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415970
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4159e6
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4159f6
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4159ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4159ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
or edi, 0xffffffff
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x18], 2
lea eax, [ebp - 0x28]
mov esi, 2
mov dword [ebp - 0x2c], 7
cmovb esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0xa8], esi
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0xac], eax
cmp esi, 7
ja 0x415a5b
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0xa8], eax
jmp 0x415ac0
cmp esi, 0x7ffffffe
ja 0x415d26
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x415a7b
mov ebx, 0x7ffffffe
jmp 0x415a85
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403890
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
push eax
mov dword [ebp - 0x2c], ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xb0]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, eax
mov dword [ebp - 0x40], esi
or dword [ebp - 0xa4], 8
lea eax, [ebp - 0x40]
cmp ebx, 8
cmovae eax, esi
cmp dword [ebp - 0xa8], 2
jne 0x415af4
push 2
push 0x518448
push eax
call fcn.00411a20
add esp, 0xc
mov byte [ebp - 0xb1], 1
test eax, eax
je 0x415afb
mov byte [ebp - 0xb1], 0
cmp ebx, 8
jb 0x415b2f
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x415b25
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415cf3
push ebx
push esi
call fcn.004c6f6f
add esp, 8
cmp byte [ebp - 0xb1], 0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
je 0x415b78
xor ecx, ecx
test esi, esi
je 0x415b68
mov edx, dword [ebp - 0x14]
cmp esi, ecx
jbe 0x415d21
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
cmp word [eax + ecx*2], 0x5c
jne 0x415b66
inc ecx
cmp esi, ecx
ja 0x415b4f
jmp 0x415b68
mov edi, ecx
push edi
push 0x516d0c
lea ecx, [ebp - 0x28]
call fcn.004144f0
mov edi, eax
inc edi
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, ebx
cmp edi, esi
jae 0x415bbb
mov ecx, esi
lea eax, [edx + edi*2]
sub ecx, edi
mov edi, 0
je 0x415bb1
cmp word [eax], 0x5c
je 0x415baf
jmp 0x415ba0
cmp ecx, 1
je 0x415bb1
add eax, 2
dec ecx
cmp word [eax], 0x5c
jne 0x415ba0
mov edi, eax
test edi, edi
je 0x415bbb
sub edi, edx
sar edi, 1
jmp 0x415bbe
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x415cc8
cmp esi, edi
mov dword [ebp - 0x40], 0
mov ecx, edi
mov dword [ebp - 0x30], 0
cmovb ecx, esi
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.00403a70
or dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415c19
test al, 0x10
jne 0x415c31
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415c72
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415c67
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415cb3
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
jmp 0x415b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x415c87
movzx esi, si
or esi, 0x80070000
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415cc3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415cb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415cb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ebx, dword [ebp - 0x28]
jmp 0x415cca
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x415d03
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x415cf9
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415cf9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.004c6f6f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
call fcn.00412cc0
call fcn.00403870
int3