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

Disassembly:
push 0xffffffffffffffff
push 0x4d7105
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x470ef5
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x470ef5
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push str..3dp
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0xbc], 0
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x4fde9c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], ebx
call fcn.004ce042
lea ecx, [esp + 0x10]
mov dword [esp + 0xb4], 0xffffffff
call fcn.004ce042
test ebx, ebx
je 0x470ef5
push esi
push edi
lea ecx, [esp + 0x64]
push 0x4fe2bc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea edx, [esp + 0x64]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fprintf]
xor edi, edi
push edi
push 0x50
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
push 0x18
push ebp
call esi
push ebx
lea eax, [ebp + 0x1c]
push 1
push 0xc
push eax
mov dword [esp + 0x7c], eax
call esi
or eax, 0xffffffff
mov dword [esp + 0x64], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
movsx edi, word [ebp + 0x86]
mov dword [esp + 0x54], eax
mov esi, dword [ebp + 0x88]
movsx eax, word [ebp + 0x84]
imul edi, eax
mov al, byte [ebp + 0x74]
add esp, 0x34
test al, al
je 0x470abb
lea ecx, [esp + 0x40]
xor ebx, ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x44], ebx
call fcn.0046b530
mov edx, dword [esp + 0x40]
lea eax, [esi + esi*2]
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], 6
lea ecx, [eax*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov dword [esp + 0xbc], 1
je 0x47067c
push fcn.004011f0
push fcn.00426a10
lea ebp, [eax + 4]
push esi
push 0xc
push ebp
mov dword [eax], esi
call fcn.004ce784
jmp 0x47067e
xor ebp, ebp
lea edx, [esi + esi*2 + 4]
mov dword [esp + 0x34], ebp
push edx
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0xbc], 2
je 0x4706c9
push fcn.004011f0
push 0x471b50
lea ebx, [eax + 4]
push esi
push 3
push ebx
mov dword [eax], esi
call fcn.004ce784
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test edi, edi
mov esi, dword [eax + 0x80]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xbc], 0xffffffff
jle 0x47075f
cmp byte [esi + 0xc], 7
jb 0x47074c
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0046ad60
test al, al
jne 0x470702
mov byte [esi + 0xc], 5
jmp 0x47074c
mov ecx, dword [esp + 0x1c]
movsx edx, word [ecx + 0x86]
cmp ebp, edx
jge 0x470715
inc dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
inc eax
push esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5c]
push eax
call fcn.004051b0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebx
call fcn.00404030
mov eax, dword [esp + 0x28]
add ebx, 3
add eax, 0xc
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
inc ebp
add esi, 0x18
add ecx, 3
cmp ebp, edi
mov dword [esp + 0x24], ecx
jl 0x4706e8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x470784
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004011f0
push ecx
push 3
push eax
call fcn.004ce690
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
lea edx, [eax + eax]
push 1
lea ecx, [esp + 0x38]
xor ebp, ebp
lea eax, [eax + eax*2]
push 4
push ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call esi
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call esi
push edi
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call esi
push edi
push 1
lea ecx, [esp + 0x74]
push 2
push ecx
call esi
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
add esp, 0x40
push edi
push edx
push 0xc
push ebx
call esi
add esp, 0x10
cmp ebx, ebp
je 0x47080e
mov eax, dword [ebx - 4]
lea ebp, [ebx - 4]
push fcn.004011f0
push eax
push 0xc
push ebx
call fcn.004ce690
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebp, ebp
mov ecx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x1c]
push ecx
push 3
push edi
call esi
add esp, 0x10
cmp edi, ebp
je 0x470841
mov edx, dword [edi - 4]
lea esi, [edi - 4]
push fcn.004011f0
push edx
push 3
push edi
call fcn.004ce690
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebp
mov edx, dword [ecx + 0x80]
mov dword [esp + 0x14], ebp
movsx ecx, word [ecx + 0x84]
dec ecx
mov dword [esp + 0x18], edx
test ecx, ecx
mov dword [esp + 0x2c], ebp
jle 0x470e6e
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
movsx ecx, word [edi + 0x86]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
lea edx, [ecx - 1]
test edx, edx
jle 0x470a4a
lea edx, [ebx + 1]
mov dword [esp + 0x28], edx
lea edx, [ebp + 1]
mov dword [esp + 0x24], edx
mov dl, byte [esi + 0xc]
cmp dl, 6
jbe 0x4708d1
mov edi, dword [esp + 0x24]
inc ebp
inc edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], edi
lea ecx, [ecx + ecx*2]
lea edi, [esi + ecx*8]
mov cl, byte [esi + ecx*8 + 0xc]
cmp cl, 6
jbe 0x4708ee
mov ebp, dword [esp + 0x28]
inc ebx
inc ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x38]
cmp dl, 6
jbe 0x47090a
cmp cl, 6
jbe 0x47090a
mov edx, dword [esp + 0x10]
inc edx
add eax, 8
mov dword [esp + 0x10], edx
mov dword [eax - 8], ebp
mov dword [eax - 4], ebx
cmp byte [esi + 0xc], 6
jbe 0x47092c
cmp byte [esi + 0x24], 6
jbe 0x47094c
mov edx, dword [esp + 0x10]
inc edx
add eax, 8
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax - 8], ebp
mov dword [eax - 4], edx
cmp byte [esi + 0x24], 6
jbe 0x47094c
cmp byte [edi + 0xc], 6
jbe 0x47094c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x10], edx
mov dword [eax], ecx
mov dword [eax + 4], ebx
jmp 0x47096a
cmp byte [esi + 0xc], 6
jbe 0x47096d
cmp byte [edi + 0x24], 6
jbe 0x47096d
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [eax], ebp
mov dword [eax + 4], edx
add eax, 8
mov dl, byte [esi + 0xc]
xor ecx, ecx
cmp dl, 6
jbe 0x470991
cmp byte [edi + 0xc], 6
jbe 0x470991
cmp byte [esi + 0x24], 6
jbe 0x4709ad
mov edx, dword [esp + 0x14]
mov ecx, 1
inc edx
mov dword [esp + 0x14], edx
cmp byte [esi + 0x24], 6
jbe 0x4709ad
cmp byte [edi + 0xc], 6
jbe 0x4709ad
cmp byte [edi + 0x24], 6
jbe 0x4709ad
mov edx, dword [esp + 0x14]
inc ecx
inc edx
mov dword [esp + 0x14], edx
cmp ecx, 2
jge 0x4709e9
cmp byte [esi + 0xc], 6
jbe 0x4709ce
cmp byte [edi + 0xc], 6
jbe 0x4709ce
cmp byte [edi + 0x24], 6
jbe 0x4709ce
mov edx, dword [esp + 0x14]
inc ecx
inc edx
mov dword [esp + 0x14], edx
cmp ecx, 2
jge 0x4709e9
cmp byte [esi + 0x24], 6
jbe 0x4709e9
cmp byte [esi + 0xc], 6
jbe 0x4709e9
cmp byte [edi + 0x24], 6
jbe 0x4709e9
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
movsx edx, word [ecx + 0x84]
mov ecx, dword [esp + 0x2c]
sub edx, 2
cmp ecx, edx
jne 0x470a20
cmp byte [edi + 0xc], 6
jbe 0x470a20
cmp byte [edi + 0x24], 6
jbe 0x470a20
mov ecx, dword [esp + 0x28]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
add eax, 8
inc ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x20]
add esi, 0x18
inc edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
movsx ecx, word [edx + 0x86]
lea edx, [ecx - 1]
cmp edi, edx
jl 0x4708bb
mov edi, dword [esp + 0x1c]
mov dl, byte [esi + 0xc]
cmp dl, 6
jbe 0x470a57
inc ebp
mov dword [esp + 0x38], ebp
movsx ecx, word [edi + 0x86]
lea ecx, [ecx + ecx*2]
lea ecx, [esi + ecx*8]
mov cl, byte [ecx + 0xc]
cmp cl, 6
jbe 0x470a6d
inc ebx
cmp dl, 6
jbe 0x470a88
cmp cl, 6
jbe 0x470a88
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x10]
add eax, 8
inc ecx
mov dword [esp + 0x10], ecx
movsx ecx, word [edi + 0x86]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
lea ecx, [ecx + ecx*2]
inc edx
mov dword [esp + 0x2c], edx
lea ecx, [esi + ecx*8]
mov dword [esp + 0x18], ecx
movsx ecx, word [edi + 0x84]
dec ecx
cmp edx, ecx
jl 0x47088f
jmp 0x470e6e
lea edx, [esi + esi*2]
mov ebp, 3
mov dword [esp + 0x3c], ebp
lea eax, [edx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0xbc], ebp
je 0x470b00
push fcn.004011f0
push fcn.00426a10
lea ebp, [eax + 4]
push esi
push 0xc
push ebp
mov dword [eax], esi
call fcn.004ce784
jmp 0x470b02
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xbc], 0xffffffff
test edi, edi
mov esi, dword [ecx + 0x80]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], 0
jle 0x470b85
cmp byte [esi + 0xc], 7
jb 0x470b75
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0046ad60
test al, al
jne 0x470b41
mov byte [esi + 0xc], 5
jmp 0x470b75
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
movsx eax, word [edx + 0x86]
cmp ecx, eax
jge 0x470b58
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push esi
inc ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004051b0
add dword [esp + 0x18], 0xc
mov eax, dword [esp + 0x2c]
add esi, 0x10
inc eax
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x470b27
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
lea edx, [eax + eax]
lea ecx, [esp + 0x38]
lea eax, [eax + eax*2]
push 4
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call esi
push ebx
push 1
lea edx, [esp + 0x28]
push 4
push edx
call esi
push ebx
push 1
lea eax, [esp + 0x3c]
push 4
push eax
call esi
push ebx
push 1
lea ecx, [esp + 0x74]
push 2
push ecx
call esi
mov edx, dword [esp + 0x70]
add esp, 0x40
push ebx
push edx
push 0xc
push ebp
call esi
xor edi, edi
add esp, 0x10
cmp ebp, edi
je 0x470c01
mov eax, dword [ebp - 4]
lea esi, [ebp - 4]
push fcn.004011f0
push eax
push 0xc
push ebp
call fcn.004ce690
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
lea edx, [ecx*8]
push edx
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edi
movsx edx, word [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
dec edx
test edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edi
jle 0x470e6e
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
movsx ecx, word [ebx + 0x86]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
lea edx, [ecx - 1]
test edx, edx
jle 0x470e04
lea edx, [edi + 1]
mov dword [esp + 0x24], edx
lea edx, [ebp + 1]
mov dword [esp + 0x28], edx
mov bl, byte [esi + 0xc]
cmp bl, 6
jbe 0x470c8d
mov edx, dword [esp + 0x28]
inc ebp
inc edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edx
shl ecx, 4
add ecx, esi
mov dl, byte [ecx + 0xc]
cmp dl, 6
jbe 0x470ca8
mov ebp, dword [esp + 0x24]
inc edi
inc ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x38]
cmp bl, 6
jbe 0x470cc4
cmp dl, 6
jbe 0x470cc4
mov ebx, dword [esp + 0x10]
inc ebx
add eax, 8
mov dword [esp + 0x10], ebx
mov dword [eax - 8], ebp
mov dword [eax - 4], edi
cmp byte [esi + 0xc], 6
jbe 0x470ce6
cmp byte [esi + 0x1c], 6
jbe 0x470d06
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc ebx
add eax, 8
mov dword [esp + 0x10], ebx
mov dword [eax - 8], ebp
mov dword [eax - 4], edx
cmp byte [esi + 0x1c], 6
jbe 0x470d06
cmp byte [ecx + 0xc], 6
jbe 0x470d06
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x10], ebx
mov dword [eax], edx
mov dword [eax + 4], edi
jmp 0x470d24
cmp byte [esi + 0xc], 6
jbe 0x470d27
cmp byte [ecx + 0x1c], 6
jbe 0x470d27
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x10], ebx
mov dword [eax], ebp
mov dword [eax + 4], edx
add eax, 8
mov bl, byte [esi + 0xc]
xor edx, edx
cmp bl, 6
jbe 0x470d4b
cmp byte [ecx + 0xc], 6
jbe 0x470d4b
cmp byte [esi + 0x1c], 6
jbe 0x470d67
mov ebx, dword [esp + 0x14]
mov edx, 1
inc ebx
mov dword [esp + 0x14], ebx
cmp byte [esi + 0x1c], 6
jbe 0x470d67
cmp byte [ecx + 0xc], 6
jbe 0x470d67
cmp byte [ecx + 0x1c], 6
jbe 0x470d67
mov ebx, dword [esp + 0x14]
inc edx
inc ebx
mov dword [esp + 0x14], ebx
cmp edx, 2
jge 0x470da3
cmp byte [esi + 0xc], 6
jbe 0x470d88
cmp byte [ecx + 0xc], 6
jbe 0x470d88
cmp byte [ecx + 0x1c], 6
jbe 0x470d88
mov ebx, dword [esp + 0x14]
inc edx
inc ebx
mov dword [esp + 0x14], ebx
cmp edx, 2
jge 0x470da3
cmp byte [esi + 0x1c], 6
jbe 0x470da3
cmp byte [esi + 0xc], 6
jbe 0x470da3
cmp byte [ecx + 0x1c], 6
jbe 0x470da3
inc dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
movsx edx, word [edx + 0x84]
sub edx, 2
cmp ebx, edx
jne 0x470dda
cmp byte [ecx + 0xc], 6
jbe 0x470dda
cmp byte [ecx + 0x1c], 6
jbe 0x470dda
mov ecx, dword [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
add eax, 8
inc ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x20]
add esi, 0x10
inc edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movsx ecx, word [edx + 0x86]
lea edx, [ecx - 1]
cmp ebx, edx
jl 0x470c77
mov ebx, dword [esp + 0x1c]
mov dl, byte [esi + 0xc]
cmp dl, 6
jbe 0x470e11
inc ebp
mov dword [esp + 0x38], ebp
movsx ecx, word [ebx + 0x86]
shl ecx, 4
add ecx, esi
mov cl, byte [ecx + 0xc]
cmp cl, 6
jbe 0x470e26
inc edi
cmp dl, 6
jbe 0x470e41
cmp cl, 6
jbe 0x470e41
mov dword [eax], ebp
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x10]
add eax, 8
inc ecx
mov dword [esp + 0x10], ecx
movsx edx, word [ebx + 0x86]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
shl edx, 4
add esi, edx
inc ecx
movsx edx, word [ebx + 0x84]
dec edx
mov dword [esp + 0x2c], ecx
cmp ecx, edx
mov dword [esp + 0x18], esi
jl 0x470c4b
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ecx, [eax + eax]
push esi
push ecx
push 4
push ebx
call edi
push ebx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x24]
push 0
push 0x50
push esi
lea eax, [edx + edx]
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esp + 0x3c]
push esi
push 1
push 0x18
push ecx
call edi
mov edx, dword [esp + 0x78]
push esi
push 1
push 0xc
push edx
call edi
add esp, 0x40
lea eax, [esp + 0x30]
push esi
push 1
push 4
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x3c]
push 4
push edx
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
mov al, 1
pop edi
pop esi
jmp 0x470ef7
xor al, al
mov ecx, dword [esp + 0xac]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 8