Function at 0x417cc0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
push 0xfffffffffffffffe
push 0x459d28
push 0x40e260
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x5050
call fcn.004193a0
mov eax, dword [0x45ba3c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x2024], 0
mov dword [ebp - 0x302c], 0
mov byte [ebp - 0x4030], 0
push 0xfff
push 0
lea eax, [ebp - 0x402f]
push eax
call fcn.00408840
add esp, 0xc
mov byte [ebp - 0x3028], 0
push 0xfff
push 0
lea ecx, [ebp - 0x3027]
push ecx
call fcn.00408840
add esp, 0xc
xor edx, edx
mov word [ebp - 0x2020], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x201e]
push eax
call fcn.00408840
add esp, 0xc
mov byte [ebp - 0x5030], 0
push 0xfff
push 0
lea ecx, [ebp - 0x502f]
push ecx
call fcn.00408840
add esp, 0xc
cmp dword [ebp + 8], 0
jl 0x417d95
cmp dword [ebp + 8], 3
jl 0x417d9d
or eax, 0xffffffff
jmp 0x4184c7
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 2
jne 0x417e64
push 0x45c024
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jle 0x417e64
push 0
push 0x116
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str._itoa_s_nLine__szLineMessage__4096__10_
push 0xa
push 0x1000
lea edx, [ebp - 0x4030]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00424160
add esp, 0x10
push eax
call fcn.00408050
add esp, 0x18
push 0x4537e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 0xc], 0
je 0x417e16
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5064], ecx
jmp 0x417e20
mov dword [ebp - 0x5064], 0x4537d8
mov edx, dword [ebp - 0x5064]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.__Line
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x4030]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x451974
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00417a40
mov dword [ebp - 0x2024], 0xffffffff
jmp 0x4184a1
cmp dword [ebp + 0x18], 0
je 0x417f38
mov dword [ebp - 0x5034], 0
call fcn.0040fc50
mov ecx, dword [eax]
mov dword [ebp - 0x5038], ecx
call fcn.0040fc50
mov dword [eax], 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0xfeb
push 0x1000
lea ecx, [ebp - 0x5030]
push ecx
call 0x4230f0
add esp, 0x14
mov dword [ebp - 0x5034], eax
cmp dword [ebp - 0x5034], 0
jge 0x417eea
push 0
push 0x12a
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.__errno___
push 0x22
push 0x16
call fcn.0040fc50
mov edx, dword [eax]
push edx
call fcn.0040d740
add esp, 0x20
call fcn.0040fc50
mov ecx, dword [ebp - 0x5038]
mov dword [eax], ecx
cmp dword [ebp - 0x5034], 0
jge 0x417f38
push 0
push 0x12d
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcpy_s_szUserMessage__4096____CrtDbgReport:_String_too_long_or_IO_Error__
push str._CrtDbgReport:_String_too_long_or_IO_Error
push 0x1000
lea edx, [ebp - 0x5030]
push edx
call fcn.00411830
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
cmp dword [ebp + 8], 2
jne 0x417f94
cmp dword [ebp + 0x18], 0
je 0x417f50
mov dword [ebp - 0x5068], 0x453720
jmp 0x417f5a
mov dword [ebp - 0x5068], 0x45370c
push 0
push 0x132
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcpy_s_szLineMessage__4096__szFormat____Assertion_failed:___:__Assertion_failed___
mov eax, dword [ebp - 0x5068]
push eax
push 0x1000
lea ecx, [ebp - 0x4030]
push ecx
call fcn.00411830
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
push 0
push 0x134
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcat_s_szLineMessage__4096__szUserMessage_
lea edx, [ebp - 0x5030]
push edx
push 0x1000
lea eax, [ebp - 0x4030]
push eax
call fcn.00423d80
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
cmp dword [ebp + 8], 2
jne 0x418053
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x45c028]
and edx, 1
je 0x41801b
push 0
push 0x139
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcat_s_szLineMessage__4096____r__
push 0x4535b0
push 0x1000
lea eax, [ebp - 0x4030]
push eax
call fcn.00423d80
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
push 0
push 0x13a
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcat_s_szLineMessage__4096____n__
push 0x451974
push 0x1000
lea ecx, [ebp - 0x4030]
push ecx
call fcn.00423d80
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x418135
mov dword [ebp - 0x503c], 0
call fcn.0040fc50
mov edx, dword [eax]
mov dword [ebp - 0x5040], edx
call fcn.0040fc50
mov dword [eax], 0
lea eax, [ebp - 0x4030]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x453558
push 0xfff
push 0x1000
lea eax, [ebp - 0x3028]
push eax
call fcn.00416f40
add esp, 0x1c
mov dword [ebp - 0x503c], eax
cmp dword [ebp - 0x503c], 0
jge 0x4180e5
push 0
push 0x141
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.__errno___
push 0x22
push 0x16
call fcn.0040fc50
mov ecx, dword [eax]
push ecx
call fcn.0040d740
add esp, 0x20
call fcn.0040fc50
mov edx, dword [ebp - 0x5040]
mov dword [eax], edx
cmp dword [ebp - 0x503c], 0
jge 0x418133
push 0
push 0x144
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcpy_s_szOutMessage__4096____CrtDbgReport:_String_too_long_or_IO_Error__
push str._CrtDbgReport:_String_too_long_or_IO_Error
push 0x1000
lea eax, [ebp - 0x3028]
push eax
call fcn.00411830
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
jmp 0x41816f
push 0
push 0x148
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.strcpy_s_szOutMessage__4096__szLineMessage_
lea ecx, [ebp - 0x4030]
push ecx
push 0x1000
lea edx, [ebp - 0x3028]
push edx
call fcn.00411830
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
mov dword [ebp - 0x5044], 0
mov dword [ebp - 0x5048], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x3028]
push eax
push 0x1000
lea ecx, [ebp - 0x2020]
push ecx
lea edx, [ebp - 0x5044]
push edx
call fcn.00423d50
add esp, 0x14
mov dword [ebp - 0x5048], eax
push 0
push 0x14d
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.e__mbstowcs_s_ret__szOutMessage2__4096__szOutMessage____size_t__1__
push 0x22
push 0x16
mov eax, dword [ebp - 0x5048]
push eax
call fcn.0040d740
add esp, 0x20
cmp dword [ebp - 0x5048], 0
je 0x418217
push 0
push 0x14f
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str.wcscpy_s_szOutMessage2__4096__L__CrtDbgReport:_String_too_long_or_Invalid_characters_in_String__
push 0x453328
push 0x1000
lea ecx, [ebp - 0x2020]
push ecx
call fcn.00414d50
add esp, 0xc
push eax
call fcn.00408050
add esp, 0x18
cmp dword [0x45f134], 0
jne 0x41822d
cmp dword [0x45f130], 0
je 0x418350
mov dword [ebp - 0x5050], 0
mov dword [ebp - 0x504c], 0
push 0xf
call fcn.0040e720
add esp, 4
mov dword [ebp - 4], 1
mov edx, dword [0x45f134]
mov dword [ebp - 0x5050], edx
jmp 0x41826f
mov eax, dword [ebp - 0x5050]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x5050], ecx
cmp dword [ebp - 0x5050], 0
je 0x4182c0
mov dword [ebp - 0x5054], 0
lea edx, [ebp - 0x5054]
push edx
lea eax, [ebp - 0x3028]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x5050]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
or eax, eax
je 0x4182be
mov dword [ebp - 0x302c], 1
mov ecx, dword [ebp - 0x5054]
mov dword [ebp - 0x2024], ecx
jmp 0x4182c0
jmp 0x418260
cmp dword [ebp - 0x302c], 0
jne 0x418337
mov edx, dword [0x45f130]
mov dword [ebp - 0x504c], edx
jmp 0x4182e6
mov eax, dword [ebp - 0x504c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x504c], ecx
cmp dword [ebp - 0x504c], 0
je 0x418337
mov dword [ebp - 0x5058], 0
lea edx, [ebp - 0x5058]
push edx
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x504c]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
or eax, eax
je 0x418335
mov dword [ebp - 0x302c], 1
mov ecx, dword [ebp - 0x5058]
mov dword [ebp - 0x2024], ecx
jmp 0x418337
jmp 0x4182d7
mov dword [ebp - 4], 0
call fcn.00418345
jmp 0x418350
cmp dword [ebp - 0x302c], 0
jne 0x4184a1
cmp dword [0x45f12c], 0
je 0x4183a5
mov dword [ebp - 0x505c], 0
lea edx, [ebp - 0x505c]
push edx
lea eax, [ebp - 0x3028]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x45f12c]
add esp, 0xc
or eax, eax
je 0x4183a5
mov dword [ebp - 0x302c], 1
mov edx, dword [ebp - 0x505c]
mov dword [ebp - 0x2024], edx
cmp dword [ebp - 0x302c], 0
jne 0x4184a1
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x45c028]
and ecx, 1
je 0x4183ff
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x45c034], 0xffffffff
je 0x4183ff
push 0
lea eax, [ebp - 0x5060]
push eax
lea ecx, [ebp - 0x3028]
push ecx
call fcn.00408980
add esp, 4
push eax
lea edx, [ebp - 0x3028]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x45c034]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x45c028]
and eax, 2
je 0x41841b
lea ecx, [ebp - 0x3028]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x45c028]
and eax, 4
je 0x4184a1
mov byte [ebp - 0x4030], 0
cmp dword [ebp + 0x10], 0
je 0x418470
push 0
push 0x19f
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdbgrptt.c
push str._VCrtDbgReportA
push str._itoa_s_nLine__szLineMessage__4096__10_
push 0xa
push 0x1000
lea ecx, [ebp - 0x4030]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00424160
add esp, 0x10
push eax
call fcn.00408050
add esp, 0x18
lea eax, [ebp - 0x5030]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
neg edx
sbb edx, edx
lea eax, [ebp - 0x4030]
and edx, eax
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call 0x4165f0
add esp, 0x14
mov dword [ebp - 0x2024], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.004184af
jmp 0x4184c1
mov eax, dword [ebp - 0x2024]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00411b10
push ebp
pop esp
pop ebp
ret