Function at 0x470fd0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [ebp]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x74], ecx
mov ebx, dword [esp + 0xbc]
movzx ecx, byte [esi + 0x3a]
mov dword [esp + 0x64], edx
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 4]
test eax, eax
je 0x4713c0
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x7c]
movzx edi, byte [esi + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x78]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x471027
mov edx, eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xc4]
mov eax, dword [ebp + 8]
test edx, edx
je 0x471350
mov ecx, dword [esp + 0x74]
xor edx, edx
test ecx, ecx
sete dl
cmp eax, 1
sbb eax, eax
mov dword [esp + 0x6c], edx
and eax, 0xfffffffe
add eax, 4
mov dword [esp + 0x68], eax
test byte [esi + 0x1c], 1
jne 0x4716f0
test ebx, ebx
js 0x471379
mov eax, dword [esi]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x70], eax
test edx, edx
js 0x471730
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x4716b0
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov esi, ebx
cmp dword [esp + 0x78], edx
sbb esi, eax
jl 0x4710ad
test eax, eax
jns 0x4716b0
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], esi
test eax, eax
js 0x4710df
xor ebx, ebx
mov ecx, dword [esp + 0xb4]
add ecx, dword [esp + 0x38]
adc ebx, dword [esp + 0x3c]
cmp edx, ecx
sbb eax, ebx
jae 0x4710df
sub edx, dword [esp + 0x78]
mov dword [esp + 0xb4], edx
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x471980
mov eax, edi
movzx eax, al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x60], eax
jmp 0x4712b0
cmp edi, 0
ja 0x471a95
mov ebx, dword [ebp + 0xb0]
test ebx, ebx
je 0x471430
mov ecx, dword [ebp + 0x30]
xor edx, edx
mov ebx, edi
cmp esi, ecx
sbb ebx, edx
jb 0x471430
mov ebx, dword [ebp + 0x38]
xor edx, edx
add ecx, ebx
cmp esi, ecx
mov ecx, edi
sbb ecx, edx
jae 0x471430
mov esi, dword [ebp + 0x30]
xor edi, edi
movzx ecx, byte [esp + 0x44]
mov edx, edi
mov eax, esi
neg eax
adc edx, 0
xor esi, esi
neg edx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, esi
mov edi, edx
mov esi, eax
mov eax, ebx
add esi, dword [esp + 0x38]
adc edi, dword [esp + 0x3c]
xor edx, edx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x47118e
mov edx, eax
xor eax, eax
cmp esi, eax
mov ecx, edi
mov dword [esp + 0x4c], edx
sbb ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jae 0x471b26
mov ebx, dword [ebp + 0x34]
movzx ecx, byte [esp + 0x44]
xor edx, edx
lea eax, [ebx - 2]
xor ebx, ebx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
add eax, dword [esp + 0x58]
adc edx, dword [esp + 0x5c]
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add ecx, esi
adc ebx, edi
cmp eax, esi
mov eax, edx
mov dword [esp + 0x50], ecx
sbb eax, edi
mov dword [esp + 0x54], ebx
jb 0x471beb
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub eax, esi
sbb edx, edi
mov esi, eax
mov edi, edx
mov ecx, dword [esp + 0x60]
mov ebx, ecx
cmp edi, 0
ja 0x471216
mov edx, 0
cmp ecx, esi
mov eax, edx
sbb eax, edi
cmovae ebx, esi
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x88]
test edx, edx
je 0x4713e0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00415d50
mov edi, edx
or edi, eax
jne 0x471803
mov esi, dword [esp + 0x88]
cmp esi, ebx
jne 0x4719a0
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x47129c
mov esi, dword [esp + 0xc4]
test esi, esi
je 0x471495
add dword [esp + 0x74], ebx
xor edx, edx
add dword [esp + 0x38], ebx
adc dword [esp + 0x3c], edx
sub dword [esp + 0x60], ebx
je 0x471980
movzx ecx, byte [esp + 0x44]
mov edi, dword [esp + 0x3c]
xor eax, eax
mov esi, dword [esp + 0x38]
shrd esi, edi, cl
shr edi, cl
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x471110
mov eax, dword [ebp + 0xb8]
mov edx, dword [ebp + 0xbc]
xor eax, esi
xor edx, edi
or edx, eax
jne 0x471430
mov eax, dword [esp + 0x38]
mov esi, dword [ebp + 0x18]
mov edx, dword [esp + 0x3c]
mov edi, dword [ebp + 0x1c]
cmp eax, esi
mov eax, edx
sbb eax, edi
jae 0x471b66
movzx ecx, byte [esp + 0x44]
mov eax, dword [ebp + 0xc0]
xor ebx, ebx
mov edx, dword [ebp + 0xc4]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x38]
cmovne edx, eax
cmovne eax, ebx
mov ebx, dword [esp + 0x3c]
add eax, dword [esp + 0x58]
adc edx, dword [esp + 0x5c]
add eax, ecx
adc edx, ebx
sub esi, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
sbb edi, ebx
jmp 0x4711fd
mov ecx, dword [esp + 0xb0]
xor edx, edx
test ecx, ecx
sete dl
cmp eax, 1
sbb eax, eax
mov dword [esp + 0x6c], edx
and eax, 0xfffffffe
add eax, 4
mov dword [esp + 0x68], eax
test ebx, ebx
jns 0x471071
mov ecx, dword [esp + 0xc0]
mov ebx, 0x16
xor edx, edx
test ecx, ecx
je 0x4713ad
mov eax, dword [esp + 0xc0]
mov ebx, 0x16
xor edx, edx
mov dword [esp + 0xb4], 0
mov edi, dword [esp + 0xb4]
mov dword [eax], edi
add esp, 0x9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [esi + 0x38]
mov edi, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x7c], eax
jmp 0x47102f
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00415b90
jmp 0x471268
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp], ebp
call fcn.0046ffc0
mov ecx, edx
or ecx, eax
jne 0x4714a1
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x471c27
and ebx, dword [esp + 0x48]
cmp ebx, 0xffffffff
je 0x471680
mov eax, dword [ebp + 4]
test eax, eax
je 0x4712f0
mov ebx, dword [ebp + 0x38]
jmp 0x47114b
add dword [esp + 0xb0], ebx
jmp 0x47129c
mov dword [esp + 4], edx
mov ebx, eax
mov dword [esp], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
call fcn.0041d490
mov ebp, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebp
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Error_while_getting_block_number_for_index__lu:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0041d490
mov dword [esp], 2
mov edi, eax
call ebp
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
mov ebx, 5
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Could_not_reposition_stream_to_block_index__lu:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x4718f0
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0xc0]
sub eax, edi
mov dword [esi], eax
cmp edi, dword [esp + 0xb4]
jbe 0x4713ad
mov dword [esp + 0x38], edx
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov edi, dword [esp + 0xb4]
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Internal_error:_cur_nbyte_Iu___true_nbyte_Iu
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ebx
jne 0x4713ad
add esp, 0x9c
mov ebx, 5
xor edx, edx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
test ebx, ebx
js 0x471482
mov edi, dword [esp + 0x78]
sub edi, eax
mov eax, dword [esp + 0xb4]
add eax, edi
sub dword [esp + 0x60], eax
jmp 0x471482
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x4717e0
mov eax, dword [esp + 0xc0]
mov ebx, 0x1b
xor edx, edx
test eax, eax
je 0x4713ad
mov dword [esp + 0xb4], 0
mov ebx, 0x1b
xor edx, edx
jmp 0x471711
mov ebx, dword [esp + 0xc0]
test ebx, ebx
je 0x471a80
mov dword [esp + 0xb4], 0
mov ebx, 0x1e
xor edx, edx
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0xb4]
mov dword [eax], edi
add esp, 0x9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 8], 0x5481ff
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.__s__Invalid_value_for_nbyte:__Iu__Max:__Id_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov esi, dword [esp + 0x78]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], ebx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x38], esi
test eax, eax
js 0x4710ee
xor ebx, ebx
mov ecx, dword [esp + 0xb4]
add ecx, dword [esp + 0x38]
adc ebx, dword [esp + 0x3c]
cmp edx, ecx
sbb eax, ebx
jb 0x4710d4
jmp 0x4710ee
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x471993
mov dword [esp + 0xb4], 0
xor ebx, ebx
xor edx, edx
jmp 0x471711
mov dword [esp + 4], edx
mov edi, ebx
mov ebx, eax
mov esi, str.writing
mov dword [esp], eax
mov dword [esp + 0x48], edx
call fcn.0041d490
mov ecx, str.from
mov ebp, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc4]
test eax, eax
mov eax, 0x5486b3
cmovne ecx, eax
mov eax, str.reading
cmove esi, eax
mov dword [esp + 0x44], ecx
call ebp
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Error_while__s__Iu_bytes__s_FAT_device_at_position__I64u:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x48]
cmp dword [esp + 0xc0], 0
jne 0x4715c1
cmp dword [esp + 0x60], 0
je 0x4713ad
lea esi, [esi]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0xb4], eax
jae 0x47166a
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov edi, dword [esp + 0xb4]
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Internal_error:_cur_nbyte_Iu___true_nbyte_Iu
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x47166a
mov ecx, dword [esp + 0xc0]
xor ebx, ebx
xor edx, edx
test ecx, ecx
jne 0x471711
xor ebx, ebx
xor edx, edx
jmp 0x4713ad
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x471a8c
mov edx, str.from
mov eax, 0x5486b3
mov ebp, dword [esp + 0xc4]
mov ebx, str.write
mov dword [esp], 2
test ebp, ebp
mov ebp, dword [fcn.004a1b90]
cmove eax, edx
mov edx, str.read
cmove ebx, edx
mov dword [esp + 0x38], eax
mov eax, str.written
mov ecx, eax
cmove ecx, edx
mov dword [esp + 0x44], ecx
call ebp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Failed_to__s_expected__Iu_bytes__s_device_offset__I64u:__Iu_bytes__s.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
mov ebx, 5
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
jmp 0x4718d3
mov ebx, 0x1e
xor edx, edx
jmp 0x4713ad
sub dword [esp + 0x60], esi
jmp 0x4718d3
mov ebp, dword [esp + 0xc4]
mov edx, str.write_to
mov eax, str.read_from
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
test ebp, ebp
cmovne eax, edx
mov ebp, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Attempted_to__s_invalid_cluster_index:__I64u
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, 0x16
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
jmp 0x4715b2
mov dword [esp], 2
mov ebp, dword [fcn.004a1b90]
call ebp
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__offset_in_extent_is_invalid:__I64u__extent_cache_0_.cluster_count_lu_block_size_lu_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x471a38
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 0x18], edi
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__offset_in_extent_is_invalid:__I64u__length_bytes_I64u_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, 5
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
jmp 0x4718d3
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Internal_error:_Offset_in_extent_is_beyond_the_extent_bounds___I64u____I64u_.
jmp 0x471b9d
mov dword [esp + 0x3c], edi
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], esi
and eax, edi
cmp eax, 0xffffffff
jne 0x471c75
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x4718f0
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0xc0]
sub eax, edi
mov dword [esi], eax
cmp dword [esp + 0xb4], edi
jb 0x471901
jmp 0x4713ad
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov edi, dword [esp + 0x38]
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Encountered_end_of_chain_while_searching_for_cluster_index__lu.
mov dword [esp + 0xc], edi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, 5
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
jmp 0x4715b2