Function at 0x40b210
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d70d
mov eax, dword fs:[0]
push eax
mov eax, 0x1e38
call fcn.0041cea0
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1e04], esi
mov eax, dword [ebp + 8]
mov edx, str.windows_hook_manager
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1e00], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1e28], eax
mov eax, edi
mov dword [ebp - 0x1e2c], edi
nop dword [eax + eax]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40b290
test cl, cl
je 0x40b28c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40b290
add eax, 2
add edx, 2
test cl, cl
jne 0x40b270
xor eax, eax
jmp 0x40b295
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bd68
mov ecx, str.cryptography
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2c4
test dl, dl
je 0x40b2c0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2c4
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2a4
xor eax, eax
jmp 0x40b2c9
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bd68
mov ecx, str.crc32
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2f8
test dl, dl
je 0x40b2f4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2f8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2d8
xor eax, eax
jmp 0x40b2fd
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bd68
mov ecx, str.windows_hook_helper
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b330
test dl, dl
je 0x40b32c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b330
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b310
xor eax, eax
jmp 0x40b335
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bd68
cmp dword [esi + 0x14], 0
jbe 0x40bd68
cmp dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov eax, edi
jbe 0x40b354
mov eax, dword [edi]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
lea ecx, [ebp - 0x1dfc]
push ecx
push eax
call esi
add esp, 8
test eax, eax
jne 0x40b783
cmp dword [ebp - 0x1de8], 0xa00000
jle 0x40b783
mov eax, dword [ebp - 0x1e04]
lea ecx, [ebp - 0x1db4]
add eax, 0x1c
push eax
call fcn.00405c70
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1da4]
test ecx, ecx
je 0x40b404
mov edx, dword [ebp - 0x1da0]
lea eax, [ebp - 0x1db4]
mov esi, dword [ebp - 0x1db4]
cmp edx, 0xf
cmova eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x40b404
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x40b3ea
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x1da4], eax
lea eax, [ebp - 0x1db4]
cmova eax, esi
mov word [eax + ecx], 0x5c
jmp 0x40b404
push 1
push 0x4218a8
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1db4]
push 1
call fcn.004061f0
lea ecx, [ebp - 0x1de4]
call fcn.0040bd90
mov ecx, eax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 0xf
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1e08], edx
jbe 0x40b426
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x1da4]
mov eax, dword [ebp - 0x1da0]
sub eax, esi
mov dword [ebp - 0x1e24], esi
push edx
push ecx
cmp edx, eax
ja 0x40b482
cmp dword [ebp - 0x1da0], 0xf
lea eax, [esi + edx]
mov dword [ebp - 0x1da4], eax
lea esi, [ebp - 0x1db4]
cmova esi, dword [ebp - 0x1db4]
mov eax, dword [ebp - 0x1e24]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1e08]
add esp, 0xc
mov ecx, dword [ebp - 0x1e24]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x40b494
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1db4]
push edx
call fcn.004061f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1dd0]
cmp ecx, 0xf
jbe 0x40b4d4
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b4ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
cmp dword [ebp - 0x1da0], 0xf
lea eax, [ebp - 0x1db4]
cmova eax, dword [ebp - 0x1db4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b4f8
test al, 0x10
jne 0x40b520
cmp dword [ebp - 0x1da0], 0xf
lea eax, [ebp - 0x1db4]
cmova eax, dword [ebp - 0x1db4]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x40b520
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [ebp - 0x1da0]
mov eax, edx
mov ecx, dword [ebp - 0x1da4]
sub eax, ecx
cmp eax, 1
jb 0x40b556
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x1da4], eax
lea eax, [ebp - 0x1db4]
cmova eax, dword [ebp - 0x1db4]
mov word [eax + ecx], 0x5c
jmp 0x40b570
push 1
push 0x4218a8
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1db4]
push 1
call fcn.004061f0
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x40b57a
mov eax, dword [edi]
push 0x428dd4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40b629
lea ecx, [ebp - 0x1de4]
call fcn.0040f280
cmp dword [eax + 0x14], 0xf
jbe 0x40b5a6
mov eax, dword [eax]
push eax
push str._s__Continue_on_next_file_____n
lea eax, [ebp - 0x11e4]
push 0xbb8
push eax
call fcn.0040ac90
mov ecx, dword [ebp - 0x1dd0]
add esp, 0x10
cmp ecx, 0xf
jbe 0x40b5fc
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b5f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b5f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
lea ecx, [ebp - 0x11e4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b605
push esi
sub ecx, edx
lea eax, [ebp - 0x11e4]
push 1
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov ecx, edi
call fcn.0040be20
mov ecx, dword [ebp - 0x1e04]
mov eax, SysReAllocString
mov esi, dword [ebp - 0x1da4]
add ecx, 0x34
sub eax, esi
mov edx, dword [ecx + 0x10]
cmp eax, edx
jb 0x40bd85
cmp dword [ebp - 0x1da0], 0xf
lea eax, [ebp - 0x1db4]
cmova eax, dword [ebp - 0x1db4]
cmp dword [ecx + 0x14], 0xf
jbe 0x40b66d
mov ecx, dword [ecx]
push edx
push ecx
push esi
push eax
push ecx
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1de4]
call fcn.004064c0
mov esi, dword [ebp - 0x1e04]
lea edx, [ebp - 0x1de4]
lea ecx, [ebp - 0x1e20]
mov byte [ebp - 4], 2
lea eax, [esi + 0x4c]
push eax
call fcn.00405ea0
add esp, 4
mov ecx, edi
push eax
call fcn.00405bf0
mov ecx, dword [ebp - 0x1e0c]
cmp ecx, 0xf
jbe 0x40b6e3
mov edx, dword [ebp - 0x1e20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b72e
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1dd0]
mov dword [ebp - 0x1e10], 0
mov dword [ebp - 0x1e0c], 0xf
mov byte [ebp - 0x1e20], 0
cmp ecx, 0xf
jbe 0x40b73e
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b734
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1da0]
cmp ecx, 0xf
jbe 0x40bb00
mov edx, dword [ebp - 0x1db4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40baf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40baf6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [edi + 0x14], 0xf
jbe 0x40b78b
mov edi, dword [edi]
lea eax, [ebp - 0x1dfc]
push eax
push edi
call esi
mov esi, dword [ebp - 0x1e04]
add esp, 8
test eax, eax
je 0x40bb00
cmp dword [esi + 0x2c], 0
jbe 0x40b7cb
cmp dword [esi + 0x30], 0xf
lea eax, [esi + 0x1c]
jbe 0x40b7b7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b7c7
test al, 0x10
jne 0x40b7d1
cmp dword [esi + 0x2c], 0
jne 0x40bb00
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x1dcc]
call fcn.00405c70
mov dword [ebp - 4], 3
cmp dword [esi + 0x2c], 0
jbe 0x40b852
mov edx, dword [ebp - 0x1db8]
lea eax, [ebp - 0x1dcc]
mov esi, dword [ebp - 0x1dcc]
cmp edx, 0xf
mov ecx, dword [ebp - 0x1dbc]
cmova eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x40b852
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x40b838
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x1dbc], eax
lea eax, [ebp - 0x1dcc]
cmova eax, esi
mov word [eax + ecx], 0x5c
jmp 0x40b852
push 1
push 0x4218a8
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1dcc]
push 1
call fcn.004061f0
lea ecx, [ebp - 0x1de4]
call fcn.0040bd90
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 0xf
mov edi, dword [ecx + 0x10]
jbe 0x40b86e
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x1dbc]
mov eax, dword [ebp - 0x1db8]
sub eax, edx
mov dword [ebp - 0x1e08], edx
push edi
push ecx
cmp edi, eax
ja 0x40b8c0
cmp dword [ebp - 0x1db8], 0xf
lea esi, [ebp - 0x1dcc]
lea eax, [edx + edi]
cmova esi, dword [ebp - 0x1dcc]
mov dword [ebp - 0x1dbc], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x1e08]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x40b8d2
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1dcc]
push edi
call fcn.004061f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1dd0]
cmp ecx, 0xf
jbe 0x40b912
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b908
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b908
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
cmp dword [ebp - 0x1db8], 0xf
lea eax, [ebp - 0x1dcc]
cmova eax, dword [ebp - 0x1dcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b936
test al, 0x10
jne 0x40b95e
cmp dword [ebp - 0x1db8], 0xf
lea eax, [ebp - 0x1dcc]
cmova eax, dword [ebp - 0x1dcc]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x40b95e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [ebp - 0x1db8]
mov eax, edx
mov ecx, dword [ebp - 0x1dbc]
sub eax, ecx
cmp eax, 1
jb 0x40b994
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x1dbc], eax
lea eax, [ebp - 0x1dcc]
cmova eax, dword [ebp - 0x1dcc]
mov word [eax + ecx], 0x5c
jmp 0x40b9ae
push 1
push 0x4218a8
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1dcc]
push 1
call fcn.004061f0
mov ecx, dword [ebp - 0x1e04]
mov eax, SysReAllocString
mov esi, dword [ebp - 0x1dbc]
add ecx, 0x34
sub eax, esi
mov edx, dword [ecx + 0x10]
cmp eax, edx
jb 0x40bd8a
cmp dword [ebp - 0x1db8], 0xf
lea eax, [ebp - 0x1dcc]
cmova eax, dword [ebp - 0x1dcc]
cmp dword [ecx + 0x14], 0xf
jbe 0x40b9eb
mov ecx, dword [ecx]
push edx
push ecx
push esi
push eax
push ecx
push dword [ebp - 0x1e00]
lea ecx, [ebp - 0x1de4]
call fcn.004064c0
mov esi, dword [ebp - 0x1e04]
lea edx, [ebp - 0x1de4]
lea ecx, [ebp - 0x1e20]
mov byte [ebp - 4], 5
lea eax, [esi + 0x4c]
push eax
call fcn.00405ea0
add esp, 4
lea ecx, [esi + 4]
push eax
call fcn.00405bf0
mov ecx, dword [ebp - 0x1e0c]
cmp ecx, 0xf
jbe 0x40ba62
mov edx, dword [ebp - 0x1e20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40baad
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1dd0]
mov dword [ebp - 0x1e10], 0
mov dword [ebp - 0x1e0c], 0xf
mov byte [ebp - 0x1e20], 0
cmp ecx, 0xf
jbe 0x40babd
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bab3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bab3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1db8]
cmp ecx, 0xf
jbe 0x40bb00
mov edx, dword [ebp - 0x1dcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40baf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40baf6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
cmp dword [esi + 0x18], 0xf
lea eax, [esi + 4]
jbe 0x40bb0b
mov eax, dword [eax]
push 0x428dd4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40bd68
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x100
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x62c]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xorps xmm0, xmm0
mov dword [ebp - 0x1e08], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x1e10], 0
movups xmmword [ebp - 0x1e20], xmm0
mov dword [ebp - 0x1e0c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bbb4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1e20]
call fcn.004020e0
lea edx, [ebp - 0x1e20]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x1de4]
call fcn.0040d040
mov esi, eax
mov byte [ebp - 4], 7
cmp dword [esi + 0x14], 0xf
jbe 0x40bbfc
mov esi, dword [esi]
lea ecx, [ebp - 0x1e44]
call fcn.0040f280
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x40bc11
mov ecx, dword [ecx]
push dword [ebp - 0x1e28]
cmp dword [ebp - 0x1e00], 1
mov edx, str.ERROR
push dword [ebp - 0x1e2c]
mov eax, str.DEBUG
cmovle eax, edx
push eax
push dword [ebp - 0x1e08]
lea eax, [ebp - 0x1d9c]
push esi
push ecx
push str._s__s___d____s____s_:__s_n
push 0xbb8
push eax
call fcn.0040ac90
mov ecx, dword [ebp - 0x1e30]
add esp, 0x24
cmp ecx, 0xf
jbe 0x40bc8d
mov edx, dword [ebp - 0x1e44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bd2b
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x1dd0]
mov dword [ebp - 0x1e34], 0
mov dword [ebp - 0x1e30], 0xf
mov byte [ebp - 0x1e44], 0
cmp ecx, 0xf
jbe 0x40bcde
mov edx, dword [ebp - 0x1de4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bcd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bd2b
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x1e0c]
mov dword [ebp - 0x1dd4], 0
mov dword [ebp - 0x1dd0], 0xf
mov byte [ebp - 0x1de4], 0
cmp ecx, 7
jbe 0x40bd3b
mov edx, dword [ebp - 0x1e20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bd31
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
lea ecx, [ebp - 0x1d9c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd44
push edi
sub ecx, edx
lea eax, [ebp - 0x1d9c]
push 1
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
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.0041bed2
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401e90
call fcn.00401e90
int3