Function at 0x40aa30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, edx
mov edx, 0x10
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x40aab1
mov ebx, dword [esp + 0xc]
mov edi, ecx
nop dword [eax]
push ebx
mov esi, edx
cmp edi, 0x10
push 1
cmovl esi, edi
push esi
push 0x41a6b0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub edi, esi
add esp, 0x10
mov edx, 0x10
test edi, edi
jg 0x40aa80
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 8]
test edx, edx
je 0x40aaff
cmp dword [edi + 4], 0
jne 0x40aaff
mov ecx, eax
call fcn.0040e810
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edx, esi
call fcn.0040e4f0
mov edx, esi
mov edi, eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
call fcn.00411da0
push dword [esp + 0xc]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push edi
call eax
mov ecx, dword [esi]
add esp, 8
mov edx, edi
call fcn.00411da0
mov edi, dword [esp + 0x18]
jmp 0x40ab31
mov edx, dword [edi + 4]
test edx, edx
je 0x40ab2d
mov ecx, eax
call fcn.0040e4f0
push dword [esp + 0xc]
mov esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
push esi
call eax
mov edx, esi
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
call fcn.00411da0
jmp 0x40ab31
mov esi, dword [esp + 0x10]
push dword [esp + 0xc]
push 0x41aec4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov eax, dword [edi + 0x10]
add esp, 8
and eax, 0x1f
dec eax
cmp eax, 0xa
ja case.0x40ab53.7
jmp dword [eax*4 + 0x40b3c8]
mov eax, dword [edi + 0x20]
push eax
push eax
push 0x41aec8
push dword [esp + 0x18]
call fcn.00408f60
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
push eax
push ecx
push eax
push ecx
push 0x41aed8
push dword [esp + 0x20]
call fcn.00408f60
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
movsd xmm1, qword [edi + 0x20]
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x1c], xmm0
push dword [esp + 0x1c]
sub esp, 8
movsd qword [esp], xmm1
push 0x41aef0
push dword [esp + 0x1c]
call fcn.00408f60
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x18]
test ebx, ebx
jne 0x40ac00
mov edx, dword [edi + 0x1c]
mov ecx, esi
call fcn.0040e810
mov ebx, eax
test byte [esp + 0x14], 2
je 0x40ac1b
push ebx
push 0x41af00
push dword [esp + 0x14]
call fcn.00408f60
add esp, 0xc
jmp 0x40ac44
mov edx, ebx
mov ecx, esi
call fcn.0040e4f0
mov esi, eax
push esi
push 0x41af08
push dword [esp + 0x14]
call fcn.00408f60
mov ecx, dword [edi + 0xc]
add esp, 0xc
mov edx, esi
mov ecx, dword [ecx]
call fcn.00411da0
cmp dword [edi + 0x18], 0
jne 0x40b3b5
mov ecx, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [ecx]
call fcn.00411da0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
test byte [esp + 0x14], 2
mov edx, dword [edi + 0x18]
je 0x40ac9b
push edx
push 0x41af00
push dword [esp + 0x14]
call fcn.00408f60
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040e4f0
mov esi, eax
push esi
push 0x41af08
push dword [esp + 0x14]
call fcn.00408f60
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
mov ecx, dword [ecx]
call fcn.00411da0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
push 0x41af10
push dword [esp + 0x14]
call fcn.00408f60
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [edi + 0x1c]
push 0x41af1c
push dword [esp + 0x14]
call fcn.00408f60
mov ecx, dword [edi + 0x1c]
add esp, 0xc
mov esi, dword [edi + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40b3b5
cmp ecx, 0x10
mov byte [esp + 0x28], 0x24
mov eax, ecx
lea edi, [esp + 0x29]
mov ecx, 0x10
mov ebx, esi
cmova eax, ecx
cmp eax, 8
mov dword [esp + 0x18], eax
mov edx, eax
mov eax, 8
cmova edx, eax
mov dword [esp + 0x1c], edx
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x40ad5e
jmp dword [eax*4 + 0x40b3f4]
movzx ecx, byte [esi]
lea edi, [esp + 0x2c]
mov eax, ecx
mov byte [esp + 0x29], 0x20
shr eax, 4
lea ebx, [esi + 1]
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [esp + 0x2a], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [esp + 0x2b], al
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
movzx ecx, byte [ebx]
mov eax, ecx
mov byte [edi], 0x20
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
lea eax, [edx + edx*2]
mov esi, 0x19
sub esi, eax
push esi
push 0x20
push edi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x24]
add esp, 0xc
sub edx, dword [esp + 0x1c]
add edi, esi
lea eax, [edx - 1]
cmp eax, 7
ja case.default.0x40aec8
jmp dword [eax*4 + 0x40b414]
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
inc ebx
mov byte [edi], 0x20
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x41a69c]
mov byte [edi + 1], al
movzx eax, byte [ecx + 0x41a69c]
mov byte [edi + 2], al
add edi, 3
mov eax, 8
sub eax, edx
lea esi, [eax + eax*2]
push esi
push 0x20
push edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [esp + 0x24]
add edi, esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov esi, ecx
mov word [edi], 0x2020
lea eax, [ebx - 1]
mov byte [edi + 2], 0x20
add edi, 3
cmp eax, 0xf
ja case.default.0x40b038
jmp dword [eax*4 + 0x40b434]
mov bl, byte [ecx]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
mov esi, dword [esp + 0x14]
add esp, 4
test eax, eax
movzx ecx, bl
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
inc esi
mov bl, byte [esi]
movzx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
add esp, 4
movzx ecx, bl
mov ebx, dword [esp + 0x18]
test eax, eax
mov edx, 0x2e
cmovne edx, ecx
mov byte [edi], dl
inc edi
mov esi, 0x10
sub esi, ebx
push esi
push 0x20
push edi
call sub.VCRUNTIME140.dll_memset
add edi, esi
add esp, 0xc
lea eax, [esp + 0x28]
mov byte [edi], 0xd
inc edi
push dword [esp + 0xc]
push 1
mov byte [edi], 0xa
sub edi, eax
inc edi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [esp + 0x10]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
test ecx, ecx
jne 0x40ad25
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
push 0x41af28
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
add dword [ebx + 8], 2
add esp, 8
mov esi, dword [edi + 0x18]
mov eax, dword [ebx + 8]
test esi, esi
je 0x40b2e2
nop dword [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.0040aa30
mov esi, dword [esi]
test esi, esi
jne 0x40b2d0
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x20]
add eax, 0xfffffffe
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0xc]
mov ecx, ebx
call fcn.0040b480
push ebx
push 0x41af2c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
push 0x41af30
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov eax, dword [ebx + 8]
add esp, 8
add eax, 2
mov dword [ebx + 8], eax
cmp dword [edi + 0x18], 0
je 0x40b370
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [edi + 0x1c], ecx
jle 0x40b370
mov eax, dword [edi + 0x18]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40b363
nop
mov edx, ebx
mov ecx, esi
call fcn.0040aa30
mov esi, dword [esi]
test esi, esi
jne 0x40b350
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [edi + 0x1c]
jl 0x40b344
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x20]
add eax, 0xfffffffe
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0xc]
mov ecx, ebx
call fcn.0040b480
push ebx
push 0x41af34
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret
push 0xa54
mov ecx, str.__Node_type_unknown_in_node_dump_
call fcn.0040ea10
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret