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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418191
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 0x40c811
cmp ebx, esi
jne 0x40c816
mov ebx, 4
cmp dword [esp + 0x380], 5
jne 0x40c82b
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 0x40cc69
cmp dword [esp + 0x18], esi
je 0x40cc69
mov ecx, dword [esp + 0x384]
push ecx
lea ecx, [esp + 0xcc]
call fcn.0040ac00
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], 0x41b0cc
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], 0x41b0b8
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.0040b8d0
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.0040bdd0
test eax, eax
jne 0x40cb70
cmp dword [esp + 0x16c], ebp
jne 0x40ca0c
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x20]
call fcn.0040b610
lea ecx, [esp + 0xc8]
call fcn.0040bdd0
jmp 0x40cb63
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0xb8], ebp
jne 0x40cbb8
cmp dword [eax + 0xa0], esi
jne 0x40cbb8
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40ca47
cmp eax, 0x4ea
je 0x40ca47
cmp eax, 0x4e2
jne 0x40cbb8
cmp dword [esp + 0x68], esi
mov dword [esp + 0x68], esi
je 0x40ca84
lea ecx, [esp + 0xc8]
call fcn.0040bdd0
cmp dword [esp + 0x20], 2
jne 0x40cb63
cmp dword [esp + 0x24], esi
jne 0x40cb63
mov edx, dword [edi]
push 0x20
mov ecx, edi
call dword [edx + 4]
mov dword [esp + 0x24], ebp
jmp 0x40cb63
cmp ebx, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
je 0x40cac7
cmp dword [esp + 0x17c], 0x4e4
jne 0x40cac7
cmp dword [esp + 0x18c], esi
mov dword [esp + 0x40], esi
je 0x40cabb
cmp word [esp + 0x188], 0xff
ja 0x40cacb
mov edi, dword [esp + 0x6c]
mov eax, ebx
mov dword [esp + 0x48], esi
jmp 0x40cad8
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 0x40cb11
cmp dword [esp + 0x178], esi
je 0x40cb11
mov dword [esp + 0x90], ebp
jmp 0x40cb1c
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.0040c390
test eax, eax
jne 0x40cb5c
lea ecx, [esp + 0xc8]
call fcn.0040bdd0
mov edi, dword [esp + 0x388]
cmp dword [esp + 0x180], esi
jne 0x40c9e1
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, 0x41b0a8
lea ecx, [esp + 0xc8]
mov dword [esp + 0x374], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
je 0x40cc5d
call fcn.0040b240
xor eax, eax
jmp 0x40cc6e
mov eax, dword [esp + 0xbc]
cmp dword [eax + 0xa0], 3
jne 0x40cbfc
cmp dword [eax + 0xb8], ebp
jne 0x40cbfc
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40cbeb
cmp eax, 0x4ea
je 0x40cbeb
cmp eax, 0x4e2
jne 0x40cbfc
lea ecx, [esp + 0xa0]
call fcn.0040c4f0
jmp 0x40cb63
lea ecx, [esp + 0xa0]
call fcn.0040c620
test eax, eax
jne 0x40cb63
mov eax, dword [esp + 0x168]
cmp eax, 4
jne 0x40cc37
cmp dword [esp + 0x10], esi
je 0x40cc37
lea ecx, [esp + 0xc8]
mov dword [esp + 0x10], ebp
call fcn.0040bdd0
jmp 0x40cb63
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.0040c780
add esp, 8
jmp 0x40cb63
call fcn.0040b240
mov eax, 6
jmp 0x40cc6e
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