Function at 0x40c220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x42c
mov eax, dword [0x5627bc]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
push 0x31
lea eax, [esp + 0xe9]
push 0
push eax
mov byte [esp + 0xf0], 0
call sub.MSVCR80.dll_memset
xor eax, eax
push 0x31
push eax
lea ecx, [esp + 0x75]
push ecx
mov byte [esp + 0x64], 0
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov byte [esp + 0x50], al
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
mov byte [esp + 0x78], al
call sub.MSVCR80.dll_memset
xor ebx, ebx
add esp, 0x18
cmp dword [0x562e90], ebx
jle 0x40c6c6
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
lea edx, [esp + 0x28]
lea esi, [esp + 0x118]
mov ebp, 0x568264
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
mov word [eax], 0xffff
mov eax, dword [ebp + 0x64]
test eax, eax
mov dword [esp + 0x10], 0
je 0x40c2fd
mov ecx, dword [esp + 0x18]
push 0
push ecx
push 0x528934
push eax
call sub.HCLXT.dll_Ordinal_194_1
add esp, 0x10
cmp dword [ebp - 4], 0
mov byte [esi], 0
je 0x40c6a9
mov eax, dword [ebp]
mov ecx, dword [0x565f7c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + eax*4]
push str.FONTLIST_DEFAULT_TAG_STRING
push edx
call fcn.0046d2c0
mov ecx, dword [ebp + 8]
mov edx, dword [0x568944]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + ecx*4]
push str.FONTLIST_DEFAULT_TAG_STRING
push eax
call fcn.0046d2c0
fldz
fcomp dword [ebx*4 + 0x5689a0]
add esp, 0x18
fnstsw ax
test ah, 0x44
jnp 0x40c3f0
mov edx, dword [ebp]
mov eax, dword [0x568c34]
movsx eax, word [eax + edx*2]
movsx edx, word [0x569f68]
push 0xa
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
add ecx, edx
movsx edx, word [eax*8 + 0x5416ba]
imul ecx, ecx, 0xb
add ecx, edx
push ecx
fld qword [ecx*8 + 0x5414a8]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fchs
fmul dword [ebx*4 + 0x5689a0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.0041d7d0
mov eax, dword [ebp]
mov ecx, dword [0x568c34]
movsx edx, word [ecx + eax*2]
mov eax, dword [ebp + 8]
imul edx, edx, 0xb
movsx ecx, word [eax*8 + 0x5416ba]
add edx, ecx
mov edx, dword [edx*4 + 0x566700]
push edx
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x74]
push 0x528308
push ecx
call edi
add esp, 0x1c
mov eax, dword [ebp + 8]
cmp eax, 0x24
ja case.0x40c403.2
movzx edx, byte [eax + 0x40ca10]
jmp dword [edx*4 + 0x40c9ec]
mov ecx, dword [0x565cd0]
lea eax, [esp + 0x24]
push eax
push str.rel_ass
push 1
push str.Oscillo
push ecx
call sub.rtdb2sdm.dll_GetGenericData
add esp, 0x14
test eax, eax
jl 0x40c46b
fldz
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x40c449
mov edx, dword [0x565cd8]
push str.QuoTeoRel
push edx
jmp 0x40c454
mov eax, dword [0x565cd8]
push str.QuoTeoAss
push eax
call fcn.0041d330
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40c46f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
push eax
push edx
push str.__s__s__s
push esi
call edi
add esp, 0x14
jmp 0x40c67d
mov ecx, dword [0x565cd0]
lea eax, [esp + 0x24]
push eax
push str.rel_ass
push 1
push str.Oscillo
push ecx
call sub.rtdb2sdm.dll_GetGenericData
add esp, 0x14
test eax, eax
jl 0x40c4eb
fldz
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x40c4c9
mov edx, dword [0x565cd8]
push str.QuoReaRel
push edx
jmp 0x40c4d4
mov eax, dword [0x565cd8]
push str.QuoReaAss
push eax
call fcn.0041d330
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40c4ef
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
push eax
push edx
push str.__s__s__s
push esi
call edi
add esp, 0x14
jmp 0x40c67d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
push ecx
push 0x528c88
push esi
call edi
add esp, 0x10
jmp 0x40c67d
push 0x27
lea edx, [esp + 0x99]
push 0
push edx
mov byte [esp + 0xa0], 0
call sub.MSVCR80.dll_memset
push 0
lea eax, [esp + 0xa4]
push eax
push ebx
call fcn.00402040
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xb0]
push edx
push 0x528c80
push esi
call edi
add esp, 0x28
jmp 0x40c67d
push ebx
push str.siglai
push 0x525a54
push esi
call edi
mov ecx, dword [0x565cd0]
lea eax, [esp + 0x5c]
push eax
push esi
push 1
push str.Oscillo
push ecx
call sub.rtdb2sdm.dll_GetGenericData
add esp, 0x24
test eax, eax
jge 0x40c59d
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
push 0x528c74
push esi
call edi
add esp, 0x14
jmp 0x40c67d
push ebx
push str.siglau
push 0x525a54
push esi
call edi
mov eax, dword [0x565cd0]
lea edx, [esp + 0x48]
push edx
push esi
push 1
push str.Oscillo
push eax
call sub.rtdb2sdm.dll_GetGenericData
add esp, 0x24
test eax, eax
jge 0x40c5ee
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
push 0x528c74
push esi
call edi
add esp, 0x14
jmp 0x40c67d
push 0x4f
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call sub.MSVCR80.dll_memset
push 0
lea edx, [esp + 0xa4]
push edx
push ebx
call fcn.00401ed0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
push 0x528c74
push esi
call edi
add esp, 0x2c
jmp 0x40c67d
push esi
push ebx
call fcn.00402300
add esp, 8
jmp 0x40c67d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x60]
push eax
push ecx
push 0x5259ec
push edx
push 0x528c68
push esi
call edi
add esp, 0x18
mov eax, dword [esp + 0x20]
push eax
call sub.HCLXT.dll_Ordinal_126
mov ecx, dword [esp + 0x18]
push ecx
call sub.HCLXT.dll_Ordinal_126
add esp, 8
cmp dword [esp + 0x10], 0
je 0x40c6a9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
add dword [esp + 0x18], 2
add ebx, 1
add ebp, 0xb8
add esi, 0x64
cmp ebx, dword [0x562e90]
jl 0x40c2d0
cmp dword [0x5660f4], 1
jne 0x40c7ca
lea eax, [esp + 0x118]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c6e0
mov ecx, dword [0x5660f0]
sub eax, edx
push eax
lea eax, [esp + 0x11c]
push eax
push ecx
call sub.XLIB.dll_Ordinal_430
movzx edx, word [esp + 0x34]
mov ebx, eax
add esp, 0xc
lea eax, [esp + 0x244]
add ebx, edx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c716
mov ecx, dword [0x5660f0]
sub eax, edx
push eax
lea eax, [esp + 0x248]
push eax
push ecx
call sub.XLIB.dll_Ordinal_430
movzx edx, word [esp + 0x3a]
mov esi, dword [0x566588]
sub esi, edx
add esp, 0xc
sub esi, eax
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c752
mov ecx, dword [0x5660f0]
sub eax, edx
push eax
lea eax, [esp + 0x180]
push eax
push ecx
call sub.XLIB.dll_Ordinal_430
movzx edx, word [esp + 0x36]
mov edi, eax
add esp, 0xc
lea eax, [esp + 0x1e0]
add edi, edx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c788
mov ecx, dword [0x5660f0]
sub eax, edx
push eax
lea eax, [esp + 0x1e4]
push eax
push ecx
call sub.XLIB.dll_Ordinal_430
movzx edx, word [esp + 0x38]
mov ecx, dword [0x566588]
sub ecx, edx
add esp, 0xc
sub ecx, eax
cmp ebx, esi
jg 0x40c930
cmp edi, ecx
jg 0x40c930
xor ebp, ebp
cmp dword [0x562e90], ebp
jle 0x40c9c3
mov edi, 0x5682a8
lea esi, [esp + 0x118]
mov eax, ebp
and eax, reloc.WSOCK32.dll_closesocket
jns 0x40c7f2
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
ja case.default.0x40c7fb
jmp dword [eax*4 + 0x40ca38]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c807
mov ecx, dword [0x5660f0]
sub eax, edx
movzx edx, word [esp + ebp*2 + 0x28]
push eax
mov eax, dword [edi + 8]
sub eax, dword [ecx + 0x4c]
push esi
sub eax, 1
push eax
jmp 0x40c8f9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c833
sub eax, edx
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c845
mov ecx, dword [0x5660f0]
push edx
mov edx, dword [edi + 8]
sub eax, ebx
add edx, dword [ecx + 0x4c]
mov ebx, dword [ecx + 0x48]
lea edx, [edx + ebx + 1]
jmp 0x40c8dd
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c870
mov ecx, dword [edi + 8]
sub eax, edx
push eax
mov eax, dword [0x5660f0]
add ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x48]
lea eax, [ecx + edx + 1]
movzx ecx, word [esp + ebp*2 + 0x2c]
mov edx, dword [edi]
push esi
push eax
mov eax, dword [0x5689c0]
push ecx
mov ecx, dword [0x568980]
push edx
push eax
push ecx
jmp 0x40c90b
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c8b0
sub eax, edx
mov ecx, eax
mov eax, esi
lea edx, [eax + 1]
mov bl, byte [eax]
add eax, 1
test bl, bl
jne 0x40c8c2
sub eax, edx
mov edx, dword [edi + 8]
push ecx
mov ecx, dword [0x5660f0]
sub edx, dword [ecx + 0x4c]
sub edx, 1
push esi
push edx
push eax
push esi
push ecx
call sub.XLIB.dll_Ordinal_430
movzx ecx, word [esp + ebp*2 + 0x40]
mov edx, dword [0x566588]
sub edx, ecx
add esp, 0xc
sub edx, eax
mov eax, dword [edi]
mov ecx, dword [0x5689c0]
push edx
mov edx, dword [0x568980]
push eax
push ecx
push edx
call sub.XLIB.dll_Ordinal_422
add esp, 0x1c
add ebp, 1
add esi, 0x64
add edi, 0xb8
cmp ebp, dword [0x562e90]
jl 0x40c7e4
jmp 0x40c9c3
mov eax, dword [0x5660f0]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x48]
mov ebp, dword [0x56658c]
lea eax, [ecx + edx + 1]
mov edx, dword [0x566580]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [0x562e90]
imul ecx, eax
add edx, 6
sub ebp, ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edx
jle 0x40c9c3
mov ebx, 0x5682a8
lea esi, [esp + 0x118]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c980
mov ecx, dword [ebx]
sub eax, edx
mov edx, dword [0x5689c0]
push eax
mov eax, dword [esp + 0x20]
push esi
push ebp
push eax
mov eax, dword [0x568980]
push ecx
push edx
push eax
call sub.XLIB.dll_Ordinal_422
add ebp, dword [esp + 0x34]
add edi, 1
add esp, 0x1c
add esi, 0x64
add ebx, 0xb8
cmp edi, dword [0x562e90]
jl 0x40c974
mov ecx, dword [0x568248]
push ecx
call fcn.0046a390
mov ecx, dword [esp + 0x43c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00523ce0
add esp, 0x42c
ret