Function at 0x4066f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], 0
mov esi, dword [ebp + 0x10]
test eax, eax
jne 0x406810
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
movsx eax, byte [esi]
mov edi, dword [ebx + 0x64]
test eax, eax
je 0x406900
cmp eax, 0x23
je 0x406d72
mov dword [ebp - 0x60], 0
jmp 0x406740
inc dword [ebp - 0x60]
cmp dword [ebp - 0x60], 6
jle 0x406740
mov dword [esp + 4], esi
mov eax, dword [ebx + 0xc30]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x406772
mov dword [ebx + 0x64], 7
lea esi, [esi]
lea edi, [edi]
xor esi, esi
mov dword [ebp - 0x60], 0
mov edx, dword [ebx + 0x64]
cmp edx, 2
je 0x40678e
xor eax, eax
cmp edx, 1
setle al
add eax, edx
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x64], edi
je 0x406ac0
test esi, esi
je 0x406810
mov dword [esp + 4], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
test eax, eax
mov ebx, eax
je 0x406ac0
lea eax, [esi + 1]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp], eax
call fcn.00405830
test eax, eax
mov edi, eax
je 0x406df4
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
mov ebx, dword [ecx]
mov eax, dword [ebx + edx*4 + 0x3b4]
test eax, eax
jne 0x406de2
mov eax, dword [ebp - 0x60]
mov dword [ebx + eax*4 + 0x3b4], edi
mov dword [ebx + eax*4 + 0xc14], edi
nop
lea esi, [esi]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
test eax, eax
jne 0x406ac8
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + ebx*4 + 0xc14]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
test eax, eax
mov ebx, eax
je 0x406ccc
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 8]
test esi, esi
mov dword [eax + 0x44], ebx
je 0x406b0e
mov edx, eax
mov eax, dword [eax]
mov eax, dword [eax + 0xc68]
test eax, eax
jne 0x406b93
movsx edi, word [ecx + 0x3c]
mov edx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x4c]
mov ebx, dword [ebp + 8]
add eax, edx
movzx edx, word [ebx + 0x1a]
lea esi, [eax + edx]
movsx eax, word [ecx + 0x30]
cmp eax, edi
je 0x406b52
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
movzx eax, word [edx + 0xc]
or eax, 1
mov word [edx + 0xc], ax
movzx eax, word [ecx + 8]
cmp eax, edi
je 0x406b73
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp + 8]
test eax, eax
mov word [ebx + 8], di
mov word [ebx + 0xa], si
je 0x406930
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x406b84
movzx ecx, word [ebx + 8]
mov eax, dword [edx + 0x48]
mov esi, dword [edx + 0x4c]
movsx edi, word [edx + 0x3c]
add esi, eax
movzx eax, cx
cmp eax, edi
jl 0x40690c
movzx eax, word [ebx + 0xa]
cmp eax, esi
jl 0x406d63
mov dword [ebx + 0x48], edx
jmp 0x406916
mov dword [ebx + 0x64], 2
jmp 0x406770
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
movzx eax, cx
cmp eax, edi
je 0x406d50
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 0xc]
or eax, 2
mov word [ebx + 0xc], ax
nop
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x50]
test eax, eax
jne 0x406afa
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [ebp - 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + edx*4 + 0xc30]
test eax, eax
jne 0x406adc
mov dword [ebp - 0x68], 0x423ce4
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x64], 0x423ce4
mov eax, dword [ecx + 0x198]
cmp eax, 5
ja case.0x406975.3
jmp dword [eax*4 + 0x423dac]
mov edi, esi
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x1a]
mov eax, esi
sub eax, ecx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
cmp eax, edi
jle 0x4069f4
lea esi, [esi]
mov eax, esi
lea ebx, [ebp - 0x58]
sub eax, edi
sub eax, ecx
lea ecx, [ebp - 0x58]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x64]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sub.cygwin1.dll_sprintf
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
test eax, eax
mov ebx, eax
jne 0x406c31
inc edi
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x1a]
mov eax, esi
sub eax, ecx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
cmp eax, edi
jg 0x4069a0
test ebx, ebx
sete al
xor edx, edx
cmp edi, esi
setne dl
test edx, eax
jne 0x406c15
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x406aa8
test ebx, ebx
je 0x406cbd
movsx edi, word [ebx + 0x3c]
mov eax, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
add esi, eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 8]
movzx eax, cx
add eax, eax
cmp eax, edi
jge 0x406baf
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x50], 0
movzx eax, cx
add eax, eax
cmp eax, edi
je 0x406caa
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xc]
or eax, 4
mov word [ecx + 0xc], ax
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00405f40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x406ac0
xor eax, eax
xor edx, edx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00406470
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call fcn.0040bdd0
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00405f40
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406a72
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0041f5bc
jmp 0x40681e
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
test eax, eax
mov ebx, eax
jne 0x406a08
jmp 0x406957
mov dword [esp + 4], eax
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0041f5bc
jmp 0x40693e
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0042057c
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x44]
movsx edi, word [ecx + 0x3c]
mov edx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x4c]
mov ebx, dword [ebp + 8]
add eax, edx
movzx edx, word [ebx + 0x1a]
lea esi, [eax + edx]
movsx eax, word [ecx + 0x30]
cmp eax, edi
jne 0x40688d
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp + 8]
and eax, 0xfffffffe
mov word [ebx + 0xc], ax
movzx eax, word [ecx + 8]
cmp eax, edi
jne 0x4068b1
movzx eax, word [ecx + 0xa]
cmp eax, esi
jne 0x4068b1
jmp 0x4068b8
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
jmp 0x406930
mov dword [esp + 4], eax
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
mov ecx, dword [ebp + 8]
mov ebx, ecx
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebx + 0x44]
jmp 0x406b30
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0xa]
cmp eax, esi
jl 0x406a3b
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], ebx
jmp 0x406a45
mov dword [ebp - 0x64], str.___.2d__ksc5601_
mov dword [ebp - 0x68], 0x423cfa
jmp 0x406982
mov dword [ebp - 0x64], str.__r___.2d__gb2312.1980_0
mov dword [ebp - 0x68], 0x423d19
jmp 0x406982
mov dword [ebp - 0x64], str.__r___.2d__big5_0
mov dword [ebp - 0x68], 0x423d31
jmp 0x406982
mov dword [ebp - 0x64], str.___.2d__jisx0208_
mov dword [ebp - 0x68], str.EUCJ_SJIS
jmp 0x406982
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x68]
mov dword [esp], str.no_similar_multichar_font:_encoding__s__size__d
mov dword [esp + 4], edx
call fcn.00412660
jmp 0x406a08
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x58]
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x406c40
test edx, 0x8080
jne 0x406c65
shr edx, 0x10
add ecx, 2
add dl, dl
lea eax, [ebp - 0x58]
sbb ecx, 3
sub ecx, eax
lea eax, [ecx + 1]
mov dword [esp], eax
call fcn.00405830
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + edx*4 + 0xc30], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx]
mov eax, dword [eax + ecx*4 + 0xc30]
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
jmp 0x4069f4
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0xc]
and eax, 0xfffffffb
mov word [edx + 0xc], ax
jmp 0x406aae
mov edx, dword [ebp + 8]
mov dword [edx + 0x50], 0
jmp 0x406aae
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx]
mov eax, dword [eax + ecx*4 + 0xc14]
mov dword [esp], str.cant_load_font___s_
mov dword [esp + 4], eax
call fcn.00412660
mov ebx, dword [ebp + 8]
mov ecx, str.fixed
mov edx, dword [ebp - 0x60]
mov eax, dword [ebx]
mov dword [eax + edx*4 + 0xc14], ecx
mov eax, str.fixed
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp], eax
call fcn.0041fc52
test eax, eax
mov ebx, eax
jne 0x406846
mov dword [esp], str.cant_load_font___s_
mov edi, str.fixed
mov dword [esp + 4], edi
call fcn.00412660
mov dword [esp], 0x423da3
call fcn.00412660
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xc]
and eax, 0xfffffffd
mov word [ecx + 0xc], ax
jmp 0x406930
mov edx, dword [ebp + 8]
mov dword [edx + 0x48], 0
jmp 0x406916
lea eax, [esi + 1]
mov dword [esp], eax
call sub.cygwin1.dll_atoi
mov dword [ebp - 0x60], eax
movzx eax, byte [esi + 1]
movsx edx, al
cmp edx, 0x2b
je 0x406e0b
cmp edx, 0x2d
je 0x406e39
test al, al
je 0x406daf
mov edx, dword [sym.imp.cygwin1.dll___ctype_ptr__]
movsx eax, al
mov edx, dword [edx]
test byte [eax + edx + 1], 4
je 0x406ac0
cmp dword [ebp - 0x60], 6
ja 0x406ac0
mov esi, dword [ebp - 0x60]
mov eax, 2
mov edx, dword [ebp + 8]
test esi, esi
mov ebx, dword [edx]
je 0x406dda
xor eax, eax
cmp dword [ebp - 0x60], 2
mov ecx, dword [ebp - 0x60]
setle al
sub ecx, eax
mov eax, ecx
mov dword [ebx + 0x64], eax
jmp 0x406770
mov dword [esp], eax
call fcn.00421030
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
jmp 0x4067f7
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
mov dword [esp], eax
call fcn.0041f5bc
jmp 0x406ac0
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x406e20
mov eax, 1
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00405d00
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
jmp 0x406770
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x406e4e
mov eax, 1
mov dword [esp + 4], eax
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00405d00
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
jmp 0x406770