Function at 0x470aa0
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a9981
push eax
mov eax, 0x124c
mov dword fs:[0], esp
call fcn.004a5b80
push ebx
mov ebx, ecx
xor eax, eax
push ebp
mov al, byte [ebx + 0x152]
push esi
sub eax, 4
push edi
mov dword [esp + 0x20], ebx
je 0x470afa
dec eax
je 0x470ae7
mov al, byte [ebx + 0x192]
imul byte [ebx + 0x838]
jmp 0x470b0b
mov cl, byte [ebx + 0x838]
mov al, byte [ebx + 0x192]
add cl, 3
imul cl
jmp 0x470b0b
mov dl, byte [ebx + 0x838]
mov al, byte [ebx + 0x192]
add dl, 4
imul dl
mov byte [esp + 0x13], al
lea eax, [esp + 0xc5c]
push eax
push 0xfd
mov ecx, ebx
call fcn.0046fc10
push str.DBG_INFO
lea ecx, [esp + 0x48]
push 0x4e60d8
push ecx
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_operator_1
mov edx, dword [esp + 0x44]
push 0
push edx
mov dword [esp + 0x126c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x48]
push str._sINFO__02X.BIN
push edx
mov byte [esp + 0x1274], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x50]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [esp + 0x126c]
mov dword [esp + 0x50], eax
and ebp, 0xffff
mov dword [esp + 0x48], ebp
lea esi, [ebp + ebp]
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push esi
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov dword [esp + 0x54], eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
cmp word [esp + 0x126c], 0
rep stosb byte es:[edi], al
jbe 0x470c45
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x14], edi
xor eax, eax
mov edx, dword [esp + 0x1274]
mov ax, word [ebx + 0x148]
imul eax, esi
add eax, edx
test cx, cx
jbe 0x470c34
mov edi, dword [esp + 0x14]
and ecx, 0xffff
mov dl, byte [esp + 0x13]
cmp byte [eax], dl
jae 0x470c28
inc word [edi]
inc eax
dec ecx
jne 0x470c1d
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
inc esi
add edx, 2
dec ebp
mov dword [esp + 0x14], edx
jne 0x470bf9
jmp 0x470c49
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x126c]
mov ebp, dword [esp + 0x4c]
push eax
push ebp
push edi
mov ecx, ebx
call fcn.004706a0
xor edx, edx
xor eax, eax
mov dx, word [ebp]
xor ecx, ecx
mov dx, word [edi + edx*2]
and edx, 0xffff
mov esi, edx
and esi, 0xfffffff8
cmp esi, 0x40
jle 0x470c83
shr edx, 3
mov esi, edx
jmp 0x470c88
mov esi, 8
mov dx, word [esp + 0x126c]
shr dx, 1
mov word [esp + 0x18], dx
je 0x470cc7
mov edx, ecx
xor ebx, ebx
and edx, 0xffff
mov bx, word [ebp + edx*2]
mov dx, word [edi + ebx*2]
cmp dx, si
jb 0x470cc2
and edx, 0xffff
add eax, edx
inc ecx
cmp cx, word [esp + 0x18]
jb 0x470c9a
test cx, cx
jne 0x470cf3
lea ecx, [esp + 0x40]
mov byte [esp + 0x1264], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x1264], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4713db
and ecx, 0xffff
xor edx, edx
div ecx
xor esi, esi
mov ecx, 0xbf
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], si
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
cmp word [esp + 0x126c], si
mov dword [esp + 0x2c], edi
jbe 0x470e80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jmp 0x470d4b
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov di, word [edx]
cmp di, word [esp + 0x1270]
jne 0x470d66
inc esi
mov dword [esp + 0x30], esi
jmp 0x470e57
mov ecx, dword [esp + 0x34]
and edi, 0xffff
and ecx, 0xffff
lea eax, [ecx*8]
sub eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
jl 0x470e57
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1274]
mov bp, word [eax + 0x148]
inc edx
imul ebp, ebx
add ebp, ecx
cmp word [esp + 0x1c], 0
mov dword [esp + 0x2c], edx
jbe 0x470e57
mov eax, dword [esp + 0x1c]
xor esi, esi
and eax, 0xffff
lea edi, [esp + 0x5c]
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0x13]
mov al, byte [esi + ebp]
cmp al, cl
jbe 0x470e44
push 0x4e5a9c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
xor edx, edx
lea eax, [esp + 0x14]
mov dl, byte [esi + ebp]
mov byte [esp + 0x1264], 2
push edx
push esi
push ebx
push str.__4d___3d___3d__r_n
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edx, [esp + 0x58]
mov ecx, dword [eax - 8]
push 0
push edx
push ecx
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x3c]
inc word [edi]
inc eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x1264], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc esi
add edi, 2
dec eax
mov dword [esp + 0x24], eax
jne 0x470dd1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ebx
add ecx, 2
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
jne 0x470d47
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
jmp 0x470e84
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x65c]
push ebx
lea edx, [esp + 0x60]
xor ebp, ebp
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov dword [esp + 0x3c], ebp
call fcn.004706a0
test bx, bx
jbe 0x470ec9
mov eax, ebp
xor ecx, ecx
and eax, 0xffff
mov cx, word [esp + eax*2 + 0x65c]
cmp word [esp + ecx*2 + 0x5c], 0
je 0x470ec5
inc ebp
cmp bp, bx
jb 0x470ea6
mov dword [esp + 0x30], ebp
mov eax, ebx
and esi, 0xffff
and eax, 0xffff
mov dword [esp + 0x3c], 0
imul esi, eax
cmp bp, 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], 1
jb 0x4710cd
and edi, 0xffff
mov eax, 0x51eb851f
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x14]
xor edx, edx
and ecx, 0xffff
xor eax, eax
mov dx, word [esp + ecx*2 + 0x65a]
mov ax, word [esp + edx*2 + 0x5c]
mov edx, dword [esp + 0x34]
cmp eax, edx
jl 0x4710cd
xor eax, eax
test ecx, ecx
jbe 0x470f62
xor edx, edx
mov dx, word [esp + eax*2 + 0x65c]
inc eax
cmp eax, ecx
mov dx, word [esp + edx*2 + 0xc5c]
mov word [esp + eax*2 + 0x35a], dx
jb 0x470f43
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x35c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push 0xfd
call fcn.00470840
xor edi, edi
xor edx, edx
test bx, bx
jbe 0x4710cd
lea ebp, [esp + 0xc5c]
xor ecx, ecx
test ax, ax
jbe 0x470fb8
mov si, word [ebp]
mov ebx, ecx
and ebx, 0xffff
cmp si, word [esp + ebx*2 + 0x35c]
je 0x470fb4
inc ecx
cmp cx, ax
jb 0x470f9c
mov ebx, dword [esp + 0x1c]
cmp cx, ax
jne 0x470fce
mov ecx, edi
and ecx, 0xffff
inc edi
mov word [esp + ecx*2 + 0x95c], dx
inc edx
add ebp, 2
cmp dx, bx
jb 0x470f91
cmp di, 8
jb 0x4710cd
xor ebp, ebp
cmp word [esp + 0x126c], bp
mov dword [esp + 0x18], ebp
jbe 0x47108c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
mov ax, word [ecx]
cmp ax, bx
je 0x471071
cmp ax, di
jae 0x47101c
inc dword [esp + 0x18]
jmp 0x471071
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [esp + 0x1274]
xor cl, cl
mov ax, word [edx + 0x148]
imul eax, ebp
add eax, esi
xor esi, esi
test di, di
jbe 0x471071
mov edx, esi
xor ebx, ebx
and edx, 0xffff
mov bx, word [esp + edx*2 + 0x95c]
mov dl, byte [ebx + eax]
cmp dl, cl
jbe 0x471061
mov cl, dl
mov dl, byte [esp + 0x13]
cmp cl, dl
jae 0x471069
inc esi
cmp si, di
jb 0x47103e
jmp 0x47106d
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ebp
add ecx, 2
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
jne 0x471005
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
and ecx, 0xffff
and edi, 0xffff
sub eax, ecx
mov ecx, dword [esp + 0x24]
imul eax, edi
cmp eax, ecx
jb 0x4710b9
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
inc eax
cmp ax, word [esp + 0x30]
mov dword [esp + 0x14], eax
jbe 0x470f16
mov edx, dword [esp + 0x3c]
xor ebp, ebp
test dx, dx
mov dword [esp + 0x14], ebp
jbe 0x47126e
mov ecx, edx
xor eax, eax
and ecx, 0xffff
jbe 0x47110b
xor esi, esi
mov si, word [esp + eax*2 + 0x65c]
inc eax
cmp eax, ecx
mov si, word [esp + esi*2 + 0xc5c]
mov word [esp + eax*2 + 0x35a], si
jb 0x4710ec
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x35c]
push edx
push ecx
push 0xfd
mov ecx, esi
call fcn.00470840
xor edx, edx
test bx, bx
jbe 0x47124b
lea edi, [esp + 0xc5c]
xor ecx, ecx
test ax, ax
jbe 0x47115c
mov si, word [edi]
mov ebx, ecx
and ebx, 0xffff
cmp si, word [esp + ebx*2 + 0x35c]
je 0x471158
inc ecx
cmp cx, ax
jb 0x471140
mov ebx, dword [esp + 0x1c]
cmp cx, ax
jne 0x47117f
mov si, word [edi]
mov ecx, ebp
and ecx, 0xffff
shl ecx, 1
inc ebp
mov word [esp + ecx + 0xf5c], si
mov word [esp + ecx + 0x95c], dx
inc edx
add edi, 2
cmp dx, bx
jb 0x471136
mov esi, dword [esp + 0x20]
cmp bp, 8
mov dword [esp + 0x14], ebp
jb 0x47124b
lea edx, [esi + 0x3f8]
mov ecx, 0xc0
or eax, 0xffffffff
mov edi, edx
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x2ada]
mov ecx, 0xc0
or eax, 0xffffffff
mov edi, ebx
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2a9a]
mov ecx, 0x10
or eax, 0xffffffff
lea esi, [esp + 0xf5c]
rep stosd dword es:[edi], eax
mov eax, ebp
mov edi, edx
and eax, 0xffff
lea ecx, [eax + eax]
mov dword [esp + 0x34], ecx
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov edi, ebx
mov ebx, ecx
lea esi, [esp + 0xf5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp word [esp + 0x14], 0x20
rep movsb byte es:[edi], byte [esi]
jbe 0x471219
mov eax, 0x20
mov ebp, dword [esp + 0x20]
lea ecx, [eax + eax]
mov esi, edx
mov edx, ecx
lea edi, [ebp + 0x2a9a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + 0xf2], 4
mov word [ebp + 0xf4], 0
jmp 0x4712ce
mov eax, dword [esi + 0xa4]
lea ecx, [esp + 0x34]
push 0x4d8340
push ecx
mov dword [esi + 0xa8], eax
mov dword [esp + 0x3c], 0x50400
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
mov dword [esp + 0x14], ebx
test bx, bx
jbe 0x47128c
lea ecx, [esp + 0x95c]
mov word [ecx], ax
inc eax
add ecx, 2
cmp ax, bx
jb 0x471280
mov esi, dword [esp + 0x20]
mov ecx, 0x10
or eax, 0xffffffff
cmp bx, 0x20
lea edx, [esi + 0x2a9a]
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, 0x20
ja 0x4712b1
mov eax, dword [esp + 0x54]
lea ecx, [eax + eax]
mov edi, edx
mov edx, ecx
add esi, 0x3f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x20]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [esp + 0x126c], 0
jbe 0x471384
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov esi, dword [esp + 0x1274]
mov ax, word [ebp + 0x148]
xor cl, cl
imul eax, ebx
add eax, esi
cmp word [esp + 0x14], 0
mov byte [esp + 0x28], cl
jbe 0x47134d
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x95c]
and edi, 0xffff
xor edx, edx
mov dx, word [esi]
mov dl, byte [edx + eax]
cmp dl, cl
jbe 0x471329
mov cl, dl
add esi, 2
dec edi
jne 0x47131b
cmp cl, 0xa0
mov byte [esp + 0x28], cl
jb 0x47134d
mov edx, dword [esp + 0x1278]
mov al, byte [ebx + edx]
cmp al, cl
jbe 0x471348
mov cl, al
mov byte [ebx + edx], cl
jmp 0x471374
mov edx, dword [esp + 0x1278]
shr cl, 4
mov al, byte [ebx + edx]
cmp al, cl
jbe 0x471365
and eax, 0xff
jmp 0x471371
mov eax, dword [esp + 0x28]
and eax, 0xff
shr eax, 4
mov byte [ebx + edx], al
mov eax, dword [esp + 0x24]
inc ebx
dec eax
mov dword [esp + 0x24], eax
jne 0x4712e7
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4713a0
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4713b1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x1264], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov dword [esp + 0x1264], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x125c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1258
ret 0x10