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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418411
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
xor esi, esi
cmp ebx, 5
push edi
je 0x40cb01
cmp ebx, esi
jne 0x40cb06
mov ebx, 4
cmp dword [esp + 0x378], 5
jne 0x40cb1b
mov dword [esp + 0x378], 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 + 0x378]
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 0x40cf4e
cmp dword [esp + 0x18], esi
je 0x40cf4e
mov ecx, dword [esp + 0x37c]
push ecx
lea ecx, [esp + 0xc4]
call fcn.0040aee0
mov edi, dword [esp + 0x380]
lea edx, [esp + 0xc0]
mov dword [esp + 0x36c], 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], 0x41b058
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], 0x41b044
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov ecx, edx
mov edx, eax
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x384]
xor eax, eax
cmp edx, esi
sete al
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x378]
mov ebp, 1
mov byte [esp + 0x36c], 2
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], esi
push eax
push ecx
push ebx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xb4], ebp
call fcn.0040bbb0
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 + 0x8c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x98], ecx
add esp, 4
lea ecx, [esp + 0xc0]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x10], esi
call fcn.0040c0c0
test eax, eax
jne 0x40ce55
cmp dword [esp + 0x164], ebp
jne 0x40ccee
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x20]
call fcn.0040b8f0
lea ecx, [esp + 0xc0]
call fcn.0040c0c0
jmp 0x40ce48
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0xb8], ebp
jne 0x40ce9d
cmp dword [eax + 0xa0], esi
jne 0x40ce9d
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40cd29
cmp eax, 0x4ea
je 0x40cd29
cmp eax, 0x4e2
jne 0x40ce9d
cmp dword [esp + 0x68], esi
mov dword [esp + 0x68], esi
je 0x40cd66
lea ecx, [esp + 0xc0]
call fcn.0040c0c0
cmp dword [esp + 0x20], 2
jne 0x40ce48
cmp dword [esp + 0x24], esi
jne 0x40ce48
mov eax, dword [edi]
push 0x20
mov ecx, edi
call dword [eax + 4]
mov dword [esp + 0x24], ebp
jmp 0x40ce48
cmp ebx, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
je 0x40cda9
cmp dword [esp + 0x174], 0x4e4
jne 0x40cda9
cmp dword [esp + 0x184], esi
mov dword [esp + 0x40], esi
je 0x40cd9d
cmp word [esp + 0x180], 0xff
ja 0x40cdad
mov edi, dword [esp + 0x6c]
mov eax, ebx
mov dword [esp + 0x48], esi
jmp 0x40cdba
mov dword [esp + 0x40], ebp
mov edi, dword [esp + 0x14]
mov eax, 4
mov dword [esp + 0x48], ebp
mov edx, dword [esp + 0x378]
xor ecx, ecx
cmp edx, 4
setne cl
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x54], edi
dec ecx
and ecx, 0xa3
cmp eax, esi
mov dword [esp + 0x34], ecx
jne 0x40cdf6
cmp dword [esp + 0x170], esi
je 0x40cdf6
mov dword [esp + 0x8c], ebp
jmp 0x40ce01
mov edx, dword [esp + 0x78]
mov dword [esp + 0x8c], edx
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.UKHook40.dll_VnConvSetOptions]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
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.0040c680
test eax, eax
jne 0x40ce41
lea ecx, [esp + 0xc0]
call fcn.0040c0c0
mov edi, dword [esp + 0x380]
cmp dword [esp + 0x178], esi
jne 0x40ccc3
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.UKHook40.dll_VnConvSetOptions]
mov edx, dword [edi]
add esp, 4
mov ecx, edi
call dword [edx + 0x10]
test eax, eax
mov eax, 0x41b034
lea ecx, [esp + 0xc0]
mov dword [esp + 0x36c], 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
je 0x40cf42
call fcn.0040b520
xor eax, eax
jmp 0x40cf53
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0xa0], 3
jne 0x40cee1
cmp dword [eax + 0xb8], ebp
jne 0x40cee1
mov eax, dword [eax + 0xb4]
cmp eax, 0x4e4
je 0x40ced0
cmp eax, 0x4ea
je 0x40ced0
cmp eax, 0x4e2
jne 0x40cee1
lea ecx, [esp + 0x98]
call fcn.0040c7e0
jmp 0x40ce48
lea ecx, [esp + 0x98]
call fcn.0040c910
test eax, eax
jne 0x40ce48
mov eax, dword [esp + 0x160]
cmp eax, 4
jne 0x40cf1c
cmp dword [esp + 0x10], esi
je 0x40cf1c
lea ecx, [esp + 0xc0]
mov dword [esp + 0x10], ebp
call fcn.0040c0c0
jmp 0x40ce48
xor ecx, ecx
cmp eax, 4
sete cl
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x18], ecx
call fcn.0040ca70
add esp, 8
jmp 0x40ce48
call fcn.0040b520
mov eax, 6
jmp 0x40cf53
mov eax, 2
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret