Function at 0x439740
Capabilities:
Create directory

Disassembly:
mov eax, 0x1144
call fcn.00467230
push ebx
push ebp
push esi
push edi
push 0x4c9008
push 0x800
lea eax, [esp + 0x15c]
push eax
push str.FC_NAME
call fcn.00459c80
mov al, byte [esp + 0x164]
add esp, 0x10
test al, al
je 0x439d0b
call fcn.0042ea00
test eax, eax
je 0x4397cd
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x958]
push 0x4ae3f4
push edx
call fcn.00466e90
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x954]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [esp + 0x154]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push str.FC_HEIGHT
call fcn.00459c00
push 0
push str.FC_WIDTH
mov ebp, eax
call fcn.00459c00
push 0
push str.FC_PROPORTIONAL
mov ebx, eax
call fcn.00459c00
add esp, 0x18
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x439d0b
test ebp, ebp
je 0x439d0b
push ebx
lea ecx, [esp + 0x158]
push ebp
push ecx
call fcn.00439e00
add esp, 0xc
test eax, eax
jne 0x439d0b
lea edx, [esp + 0x154]
push 0x4ae454
push edx
call fcn.0046712c
mov esi, eax
neg esi
lea eax, [esp + 0x15c]
sbb esi, esi
push eax
neg esi
push 0x550f40
mov dword [esp + 0x4c], esi
call fcn.00466da0
lea ecx, [ebp*4]
mov dword [0x551048], ecx
lea edx, [ebx*4]
xor eax, eax
mov dword [0x551044], edx
mov ecx, 0x4000
mov edi, 0x55104c
rep stosd dword es:[edi], eax
mov ecx, 0x10000
mov edi, 0x56104c
push 0x80000
rep stosd dword es:[edi], eax
call fcn.004564a0
mov dword [0x5a1054], eax
mov eax, dword [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x170]
push ebp
push ecx
mov dword [0x5a1050], 4
mov dword [0x5a104c], 0x80000
call fcn.00439ef0
add esp, 0x24
call fcn.0042ea00
test eax, eax
je 0x439bc6
mov cl, byte [0x4b158c]
test cl, cl
mov eax, 0x4b158c
mov dword [esp + 0x1c], eax
je 0x439bf7
jmp 0x4398ee
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [eax + 1]
xor ecx, ecx
mov cl, byte [eax]
xor eax, eax
lea edi, [esp + 0x10]
shl edx, 8
add edx, ecx
or ecx, 0xffffffff
mov dword [esp + 0x10], edx
mov edx, dword [0x5a1060]
mov ebp, dword [edx + 8]
mov edx, dword [0x5a105c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x48]
push eax
mov ebx, ecx
push ebx
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x48]
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [0x5a1060]
mov ecx, dword [edx + 8]
imul ecx, dword [edx + 4]
mov edi, dword [edx + 0x28]
mov edx, ecx
mov esi, eax
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x5a1060]
mov eax, dword [ecx + 4]
cdq
sub eax, edx
mov edi, eax
push ebx
lea edx, [esp + 0x14]
push edx
sar edi, 1
lea eax, [edi + 1]
push eax
mov eax, dword [ecx]
mov ecx, dword [0x5a105c]
push eax
sar esi, 2
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.GDI32.dll_TextOutA]
call fcn.0042e590
test eax, eax
jne 0x439a02
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x439a02
push ebx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x5a105c]
lea eax, [edi + 1]
push eax
mov eax, dword [0x5a1060]
mov ecx, dword [eax]
sub ecx, 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [0x5a1060]
mov edx, dword [ecx]
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x5a105c]
dec edi
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [0x5a1060]
mov eax, dword [edx]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x5a105c]
push edi
sub eax, 2
push eax
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [0x5a1060]
mov eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
lea edx, [esi + esi]
sub eax, edx
test esi, esi
jle 0x439b9b
imul eax, ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 0x28]
mov edx, dword [esp + 0x20]
lea ebx, [eax + edx]
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
mov dword [esp + 0x24], 0
jle 0x439b71
lea eax, [ebp + ebp*2]
lea edi, [ebx + eax + 2]
lea ecx, [ebp + ebp]
mov eax, ebp
sub eax, ecx
lea edx, [ebp + ebp*2]
sub edx, ecx
neg ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ecx
lea ecx, [ebp + ebp*2]
mov edx, ebp
sub edx, ecx
mov dword [esp + 0x38], edx
or edx, 0xffffffff
sub edx, ecx
lea esi, [ebx + ebp*2 + 1]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
jmp 0x439aa2
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov cl, byte [edx + edi]
xor edx, edx
mov dl, byte [eax + esi]
xor eax, eax
mov al, byte [esi + 1]
add ebx, 4
add esi, 4
add edi, 4
add ecx, edx
xor edx, edx
mov dl, byte [esi - 4]
add ecx, eax
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x44]
mov al, byte [edx + edi - 4]
xor edx, edx
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x40]
mov dl, byte [eax + esi - 3]
add ecx, edx
xor edx, edx
mov dl, byte [eax + esi - 2]
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x30]
mov al, byte [edx + esi - 4]
xor edx, edx
mov dl, byte [ebx + ebp - 4]
add ecx, eax
xor eax, eax
mov al, byte [ebx + ebp - 1]
add ecx, eax
add ecx, edx
xor eax, eax
mov al, byte [esi - 2]
xor edx, edx
mov dl, byte [esi - 5]
add ecx, eax
xor eax, eax
mov al, byte [edi - 6]
add ecx, edx
xor edx, edx
mov dl, byte [edi - 3]
add ecx, eax
xor eax, eax
mov al, byte [edi - 4]
add ecx, edx
xor edx, edx
mov dl, byte [ebx - 4]
add ecx, eax
mov eax, 0x66666667
add ecx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x28]
mov byte [eax], dl
mov ecx, dword [0x5a1060]
inc eax
mov dword [esp + 0x28], eax
inc dword [esp + 0x24]
mov eax, dword [ecx]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x24]
sar eax, 2
cmp edx, eax
jl 0x439a9e
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea eax, [ebp*4]
add edi, eax
mov eax, dword [esp + 0x14]
add edx, ebp
dec eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jne 0x439a30
mov ecx, dword [ecx + 0x28]
mov edx, dword [esp + 0x10]
push ebp
push ecx
push esi
push edx
call fcn.00439d20
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 2]
add eax, 2
add esp, 0x10
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x4398ea
jmp 0x439bf7
mov al, byte [0x4b158c]
test al, al
mov edi, 0x4b158c
je 0x439bf7
xor ecx, ecx
mov cl, byte [edi + 1]
and eax, 0xff
push esi
shl ecx, 8
add ecx, eax
push ecx
call fcn.0043a0b0
mov al, byte [edi + 2]
add edi, 2
add esp, 8
test al, al
jne 0x439bd4
mov al, byte [0x550f40]
test al, al
je 0x439cbd
push 0
push str.savedata
call fcn.00430810
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0042e590
mov edx, dword [0x551048]
test eax, eax
mov eax, dword [0x551044]
push edx
push eax
push 0x550f40
je 0x439c3c
push str.savedata_fca__s__03dx_03d.fcd
jmp 0x439c41
push str.savedata_fc__s__03dx_03d.fcd
lea ecx, [esp + 0x60]
push ecx
call fcn.00466e90
add esp, 0x14
lea edx, [esp + 0x50]
push 0x4ad308
push edx
call fcn.00430810
add esp, 4
push eax
call fcn.00467119
mov esi, eax
add esp, 8
test esi, esi
je 0x439cbd
push esi
push 1
push 0x50118
push 0x550f40
call fcn.00467ed3
add esp, 0x10
cmp eax, 1
jne 0x439cb4
mov ecx, dword [0x5a1054]
push esi
push eax
mov eax, dword [0x5a1050]
push eax
push ecx
call fcn.00467ed3
add esp, 0x10
cmp eax, 1
jne 0x439cb4
mov edx, dword [0x5a1054]
push edx
call fcn.0046728e
add esp, 4
push esi
call fcn.00466f32
add esp, 4
mov eax, dword [0x54ff34]
mov ecx, dword [0x5a105c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call esi
mov edx, dword [0x54ff38]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x54ff30]
mov ecx, dword [0x5a105c]
push eax
push ecx
call esi
mov edx, dword [0x5a1060]
push 1
push edx
call fcn.00455440
mov eax, dword [0x5a105c]
add esp, 8
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1144
ret