Function at 0x5641f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x58fa48
push esi
mov edi, edx
mov dword [esp + 0x24], eax
call fcn.00517e58
push esi
call fcn.0051600c
mov ebx, dword [esp + 0x15c]
add esp, 0xc
cmp ebx, 0xf
mov dword [esp + 0x18], eax
jne 0x564247
push esi
push 6
push 1
push str.00000W
jmp 0x564256
cmp ebx, 0x10
jne 0x56425e
push esi
push 7
push 1
push str.000000W
call fcn.0051646d
add esp, 0x10
push esi
push 2
push 1
push 0x58fa34
call fcn.0051646d
movzx ecx, bl
push esi
push ecx
call fcn.00518226
mov ebx, dword [esp + 0x164]
add esp, 0x18
cmp ebx, 0x66
jne 0x56428b
push esi
push 0xb
jmp 0x56429f
push ebx
call sym.convertifd.exe_CV_IsDBSymSet
add esp, 4
test eax, eax
push esi
je 0x56429d
push 3
jmp 0x56429f
push 2
call fcn.00518226
mov dx, word [edi + 0x55c]
add dx, dx
add dx, dx
add dx, word [edi + 0x55a]
add esp, 8
movzx eax, dx
shr eax, 8
push esi
push eax
call fcn.00518226
push esi
push 3
push 1
push 0x58fa30
call fcn.0051646d
mov ecx, dword [edi + 0x18]
movsx eax, word [ecx + 0x24]
cdq
xor eax, edx
sub eax, edx
add ax, word [ecx + 0x28]
push esi
movzx eax, ax
movzx ebp, ax
mov ecx, ebp
shr ecx, 8
push ecx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov ecx, dword [edi + 0x18]
movsx eax, word [ecx + 0x26]
cdq
xor eax, edx
sub eax, edx
add ax, word [ecx + 0x2a]
push esi
movzx eax, ax
movzx ebp, ax
mov edx, ebp
shr edx, 8
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
push esi
push 0
call fcn.00518226
mov eax, dword [edi + 0x24]
add esp, 0x40
cmp dword [eax + 0xc], 0
push ebx
sete byte [esp + 0x17]
call sym.convertifd.exe_CV_IsAsianSymSet
add esp, 4
test eax, eax
mov al, 1
jne 0x56435f
mov al, byte [esp + 0x13]
movzx ecx, al
push esi
push ecx
call fcn.00518226
push ebx
call sym.convertifd.exe_CV_GetPCLName
mov ebp, eax
add esp, 0xc
cmp byte [ebp], 0
je 0x5643b2
push ebp
call fcn.00511d40
mov ecx, ebp
lea edx, [ecx + 1]
add esp, 4
mov dword [esp + 0x14], edx
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x564390
sub ecx, dword [esp + 0x14]
shl eax, 5
movzx cx, byte [ecx + ebp - 1]
add cx, ax
sub cx, 0x40
movzx eax, cx
jmp 0x5643b7
mov eax, 0x115
movzx ebp, ax
mov edx, ebp
shr edx, 8
push esi
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push 0x2e
push ecx
call sym.convertifd.exe_getTTFGlyphIndex
movzx ebp, ax
add esp, 0x20
test bp, bp
jne 0x564425
mov dword [esp + 0x14], 0x30
mov edx, dword [edi + 0x3c]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x30]
push ebx
push edx
push eax
push ecx
call sym.convertifd.exe_getTTFGlyphIndex
movzx ebp, ax
add esp, 0x10
test bp, bp
jne 0x564425
mov eax, dword [esp + 0x14]
add eax, 1
cmp ax, 0x3a
mov dword [esp + 0x14], eax
jb 0x5643f6
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
push 0
push ebp
push edx
push eax
call sym.convertifd.exe_TT_Load_Glyph
add esp, 0x10
test eax, eax
jne 0x564452
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x20]
push ecx
push edx
call sym.convertifd.exe_TT_Get_Glyph_Metrics
movzx ebp, word [esp + 0x40]
add esp, 8
movzx ebp, bp
mov eax, ebp
shr eax, 8
push esi
push eax
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
push esi
push 0
call fcn.00518226
push esi
push 0
call fcn.00518226
mov ecx, dword [edi + 0x30]
push 0x78
push ecx
call sym.convertifd.exe_TT_Char_Index
mov edx, dword [edi + 0x38]
movzx ebp, ax
mov eax, dword [edi + 0x34]
push 0
push ebp
push edx
push eax
call sym.convertifd.exe_TT_Load_Glyph
add esp, 0x38
test eax, eax
jne 0x5644b9
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x20]
push ecx
push edx
call sym.convertifd.exe_TT_Get_Glyph_Metrics
movzx ebp, word [esp + 0x34]
add esp, 8
movzx ebp, bp
mov eax, ebp
shr eax, 8
push esi
push eax
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov cx, word [edi + 0x55c]
neg cx
push esi
sbb ecx, ecx
and ecx, 0xfffffffe
push ecx
call fcn.00518226
movzx edx, byte [edi + 0x55c]
add dl, dl
add dl, dl
add dl, byte [edi + 0x55a]
push esi
and edx, 0xff
push edx
call fcn.00518226
mov ax, word [edi + 0x558]
neg ax
push esi
sbb eax, eax
and eax, 3
push eax
call fcn.00518226
mov ecx, dword [edi + 0x570]
and ecx, 0xff
push esi
push ecx
call fcn.00518226
movzx edx, byte [edi + 0x571]
push esi
push edx
call fcn.00518226
mov eax, dword [edi + 0x560]
sub eax, 0x10
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x80
push esi
push eax
call fcn.00518226
add esp, 0x40
push esi
push 4
push 1
push 0x58fa28
call fcn.0051646d
mov ecx, dword [edi + 0x20]
movsx eax, word [ecx + 0x48]
cdq
xor eax, edx
sub eax, edx
mov edx, ecx
add ax, word [edx + 0x4a]
push esi
add ax, word [ecx + 0x46]
movzx eax, ax
movzx ebp, ax
mov eax, ebp
shr eax, 8
push eax
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov ecx, dword [edi + 0x20]
movzx eax, word [ecx + 2]
movzx ebp, ax
mov edx, ebp
push esi
shr edx, 8
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
add esp, 0x30
cmp ebx, 7
jne 0x5645d3
lea eax, [ebx + 0x19]
jmp 0x5645da
mov eax, dword [edi + 0x20]
movzx eax, word [eax + 0x42]
movzx ebp, ax
mov ecx, ebp
shr ecx, 8
push esi
push ecx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
add esp, 0x10
cmp ebx, 0x66
jne 0x564604
movzx eax, word [edi + 8]
jmp 0x564638
push ebx
call sym.convertifd.exe_CV_IsDBSymSet
add esp, 4
test eax, eax
je 0x564618
mov eax, 0xffff
jmp 0x564638
cmp ebx, 7
jne 0x564624
mov eax, 0xff
jmp 0x564638
movzx eax, word [edi + 8]
cmp ax, 0xff
jae 0x564635
mov eax, 0xff
jmp 0x564638
movzx eax, ax
movzx ebp, ax
mov edx, ebp
shr edx, 8
push esi
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
push esi
push 0
call fcn.00518226
push esi
push 0
call fcn.00518226
mov eax, dword [edi + 0x30]
push 0x48
push eax
call sym.convertifd.exe_TT_Char_Index
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
movzx ebp, ax
push 0
push ebp
push ecx
push edx
call sym.convertifd.exe_TT_Load_Glyph
add esp, 0x38
test eax, eax
jne 0x56469f
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0x20]
push eax
push ecx
call sym.convertifd.exe_TT_Get_Glyph_Metrics
movzx ebp, word [esp + 0x34]
add esp, 8
movzx ebp, bp
mov edx, ebp
shr edx, 8
push esi
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
push esi
push 0
call fcn.00518226
push esi
push 0
call fcn.00518226
push esi
push 0
call fcn.00518226
push esi
push 0
call fcn.00518226
lea eax, [edi + 0x34c]
lea edx, [esp + 0x6c]
add esp, 0x30
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x5646f0
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x564703
sub eax, edx
cmp eax, 0x10
jae 0x564757
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x564720
sub eax, edx
mov ebx, eax
cmp ebx, 0x10
jge 0x56474b
mov ebp, 0x10
sub ebp, ebx
push ebp
lea eax, [esp + ebx + 0x40]
push 0x20
push eax
call fcn.00511e90
add esp, 0xc
add ebx, ebp
mov byte [esp + ebx + 0x3c], 0
mov ebx, dword [esp + 0x14c]
lea eax, [esp + 0x3c]
push eax
push str._16.16s
push esi
call fcn.00517e58
call sym.convertifd.exe_PCL_CheckSum_Reset
mov ecx, dword [edi + 0x18]
movzx eax, word [ecx + 0x12]
movzx ebp, ax
mov edx, ebp
shr edx, 8
push esi
push edx
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov eax, dword [edi + 0x18]
movzx ecx, word [eax + 0x12]
push 2
push ecx
call sym.convertifd.exe_PCL_CheckSum_Num
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 8]
movzx ebp, ax
mov eax, ebp
shr eax, 8
push esi
push eax
call fcn.00518226
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov ecx, dword [edi + 0x24]
movsx edx, word [ecx + 8]
push 2
push edx
call sym.convertifd.exe_PCL_CheckSum_Num
mov eax, dword [edi + 0x24]
movzx eax, word [eax + 0xa]
movzx ebp, ax
mov ecx, ebp
shr ecx, 8
push esi
push ecx
call fcn.00518226
add esp, 0x44
push esi
and ebp, 0xff
push ebp
call fcn.00518226
mov edx, dword [edi + 0x24]
movsx eax, word [edx + 0xa]
push 2
push eax
call sym.convertifd.exe_PCL_CheckSum_Num
push esi
push 1
call fcn.00518226
push esi
push 0
call fcn.00518226
push 2
push pe_nt_image_headers32
call sym.convertifd.exe_PCL_CheckSum_Num
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x170]
mov eax, dword [esp + 0x44]
push ecx
push ebx
push edx
push eax
mov eax, edi
call fcn.00563840
push esi
push 0
call fcn.00518226
add esp, 0x40
push esi
call sym.convertifd.exe_PCL_CheckSum_Get
movzx ecx, al
push ecx
call fcn.00518226
mov eax, dword [esp + 0x158]
add esp, 8
cmp eax, 0xf
jne 0x56488d
push esi
call fcn.0051600c
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
mov edx, 0xfffffffa
push eax
sub edx, eax
push esi
add edi, edx
call fcn.00515def
push edi
push str._05.5d
jmp 0x5648b6
cmp eax, 0x10
jne 0x5648bf
push esi
call fcn.0051600c
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
mov ecx, 0xfffffff9
push eax
sub ecx, eax
push esi
add edi, ecx
call fcn.00515def
push edi
push str._06.6d
push esi
call fcn.00517e58
add esp, 0x1c
push 2
push 0
push esi
call fcn.00515def
mov ecx, dword [esp + 0x148]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x130
ret