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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x419671
push eax
mov dword fs:[0], esp
sub esp, 0x35c
push ebx
mov ebx, dword [esp + 0x370]
push ebp
push esi
xor esi, esi
cmp ebx, 5
push edi
je 0x40c9b1
cmp ebx, esi
jne 0x40c9b6
mov ebx, 4
cmp dword [esp + 0x380], 5
jne 0x40c9cb
mov dword [esp + 0x380], 4
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
mov edi, dword [sym.imp.UKHook40.dll_public:_class_VnCharset____thiscall_CVnCharsetLib::getVnCharset_int_]
push ebx
call edi
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
mov ebp, eax
mov eax, dword [esp + 0x380]
push eax
mov dword [esp + 0x70], ebp
call edi
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
push 4
mov dword [esp + 0x1c], eax
call edi
cmp ebp, esi
mov dword [esp + 0x14], eax
je 0x40ce09
cmp dword [esp + 0x18], esi
je 0x40ce09
mov ecx, dword [esp + 0x384]
push ecx
lea ecx, [esp + 0xcc]
call fcn.0040ada0
mov edi, dword [esp + 0x388]
lea edx, [esp + 0xc8]
mov dword [esp + 0x374], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x4e4
mov dword [esp + 0x38], 0x41d140
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0x41d12c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov ecx, edx
mov edx, eax
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x38c]
xor eax, eax
cmp edx, esi
sete al
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x380]
mov ebp, 1
mov byte [esp + 0x374], 2
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], esi
push eax
push ecx
push ebx
lea ecx, [esp + 0xac]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xbc], ebp
call fcn.0040ba70
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvGetOptions_struct__VnConvOptions__]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x9c], ecx
add esp, 4
lea ecx, [esp + 0xc8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x10], esi
call fcn.0040bf70
test eax, eax
jne 0x40cd10
cmp dword [esp + 0x16c], ebp
jne 0x40cbac
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x20]
call fcn.0040b7b0
lea ecx, [esp + 0xc8]
call fcn.0040bf70
jmp 0x40cd03
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0xb8], ebp
jne 0x40cd58
cmp dword [eax + 0xa0], esi
jne 0x40cd58
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40cbe7
cmp eax, 0x4ea
je 0x40cbe7
cmp eax, 0x4e2
jne 0x40cd58
cmp dword [esp + 0x68], esi
mov dword [esp + 0x68], esi
je 0x40cc24
lea ecx, [esp + 0xc8]
call fcn.0040bf70
cmp dword [esp + 0x20], 2
jne 0x40cd03
cmp dword [esp + 0x24], esi
jne 0x40cd03
mov edx, dword [edi]
push 0x20
mov ecx, edi
call dword [edx + 4]
mov dword [esp + 0x24], ebp
jmp 0x40cd03
cmp ebx, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
je 0x40cc67
cmp dword [esp + 0x17c], 0x4e4
jne 0x40cc67
cmp dword [esp + 0x18c], esi
mov dword [esp + 0x40], esi
je 0x40cc5b
cmp word [esp + 0x188], 0xff
ja 0x40cc6b
mov edi, dword [esp + 0x6c]
mov eax, ebx
mov dword [esp + 0x48], esi
jmp 0x40cc78
mov dword [esp + 0x40], ebp
mov edi, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x380]
mov dword [esp + 0x50], eax
xor eax, eax
cmp ecx, 4
setne al
mov dword [esp + 0x54], edi
dec eax
and eax, 0xa3
mov dword [esp + 0x34], eax
cmp dword [esp + 0x7c], esi
jne 0x40ccb1
cmp dword [esp + 0x178], esi
je 0x40ccb1
mov dword [esp + 0x90], ebp
jmp 0x40ccbc
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x90], ecx
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
push edi
call dword [sym.imp.UKHook40.dll_int___cdecl_genConvert_class_VnCharset___class_VnCharset___class_ByteInStream___class_ByteOutStream__]
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0040c530
test eax, eax
jne 0x40ccfc
lea ecx, [esp + 0xc8]
call fcn.0040bf70
mov edi, dword [esp + 0x388]
cmp dword [esp + 0x180], esi
jne 0x40cb81
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
mov edx, dword [edi]
add esp, 4
mov ecx, edi
call dword [edx + 0x10]
test eax, eax
mov eax, 0x41d11c
lea ecx, [esp + 0xc8]
mov dword [esp + 0x374], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
je 0x40cdfd
call fcn.0040b3e0
xor eax, eax
jmp 0x40ce0e
mov eax, dword [esp + 0xbc]
cmp dword [eax + 0xa0], 3
jne 0x40cd9c
cmp dword [eax + 0xb8], ebp
jne 0x40cd9c
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40cd8b
cmp eax, 0x4ea
je 0x40cd8b
cmp eax, 0x4e2
jne 0x40cd9c
lea ecx, [esp + 0xa0]
call fcn.0040c690
jmp 0x40cd03
lea ecx, [esp + 0xa0]
call fcn.0040c7c0
test eax, eax
jne 0x40cd03
mov eax, dword [esp + 0x168]
cmp eax, 4
jne 0x40cdd7
cmp dword [esp + 0x10], esi
je 0x40cdd7
lea ecx, [esp + 0xc8]
mov dword [esp + 0x10], ebp
call fcn.0040bf70
jmp 0x40cd03
xor ecx, ecx
cmp eax, 4
sete cl
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xcc]
push eax
mov dword [esp + 0x18], ecx
call fcn.0040c920
add esp, 8
jmp 0x40cd03
call fcn.0040b3e0
mov eax, 6
jmp 0x40ce0e
mov eax, 2
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x368
ret