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

Disassembly:
push 0xffffffffffffffff
push 0x424631
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4315b8]
xor eax, esp
push eax
lea eax, [esp + 0x370]
mov dword fs:[0], eax
mov edi, dword [esp + 0x380]
cmp edi, 5
je 0x4116ed
test edi, edi
jne 0x4116f2
mov edi, 4
mov ebx, dword [esp + 0x384]
cmp ebx, 5
jne 0x411703
mov ebx, 4
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
mov esi, dword [sym.imp.UKHook40.dll_public:_class_VnCharset____thiscall_CVnCharsetLib::getVnCharset_int_]
push edi
call esi
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
mov ebp, eax
push ebx
mov dword [esp + 0x34], ebp
call esi
mov ecx, dword [sym.imp.UKHook40.dll_class_CVnCharsetLib_VnCharsetLibObj]
push 4
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x411a61
cmp dword [esp + 0x1c], 0
je 0x411a61
mov eax, dword [esp + 0x388]
push eax
lea ecx, [esp + 0xd0]
call fcn.0040f900
mov esi, dword [esp + 0x38c]
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x37c], 0
call fcn.00410150
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x74]
call fcn.00410a70
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x38]
call fcn.00410940
mov eax, edx
push eax
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x380], 2
call fcn.00410660
xor edx, edx
cmp dword [esp + 0x390], edx
lea ecx, [esp + 0xa4]
sete dl
push edx
push ebx
push edi
call fcn.00410690
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvGetOptions_struct__VnConvOptions__]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], ecx
add esp, 4
lea ecx, [esp + 0xcc]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], 0
call fcn.00410c50
test eax, eax
jne 0x4119a4
mov ebp, 1
mov edi, edi
cmp dword [esp + 0x170], ebp
jne 0x41185b
lea ecx, [esp + 0x184]
push ecx
lea ecx, [esp + 0x24]
call fcn.004103f0
lea ecx, [esp + 0xcc]
call fcn.00410c50
jmp 0x411996
lea ecx, [esp + 0x70]
call fcn.00410500
test eax, eax
je 0x4119e7
xor edx, edx
cmp dword [esp + 0xa0], edx
je 0x4118b4
lea ecx, [esp + 0xcc]
mov dword [esp + 0xa0], edx
call fcn.00410c50
cmp dword [esp + 0x24], 2
jne 0x411996
cmp dword [esp + 0x28], 0
jne 0x411996
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0x20
mov ecx, esi
call eax
mov dword [esp + 0x28], ebp
jmp 0x411996
lea ecx, [esp + 0x70]
call fcn.004104b0
cmp edi, 4
je 0x4118fe
cmp dword [esp + 0x180], 0x4e4
jne 0x4118fe
mov dword [esp + 0x78], edx
cmp dword [esp + 0x190], edx
je 0x4118eb
mov ecx, 0xff
cmp word [esp + 0x18c], cx
ja 0x411902
mov esi, dword [esp + 0x30]
mov eax, edi
mov dword [esp + 0x80], 0
jmp 0x411912
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x80], ebp
mov eax, 4
xor edx, edx
cmp ebx, 4
setne dl
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], esi
dec edx
and edx, 0xa3
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x3c], edx
jne 0x41194a
cmp dword [esp + 0x17c], 0
je 0x41194a
mov dword [esp + 0x60], ebp
jmp 0x411952
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x78]
push eax
push ecx
push esi
call dword [sym.imp.UKHook40.dll_int___cdecl_genConvert_class_VnCharset___class_VnCharset___class_ByteInStream___class_ByteOutStream__]
add esp, 0x14
lea ecx, [esp + 0x70]
call fcn.00411240
test eax, eax
jne 0x41198f
lea ecx, [esp + 0xcc]
call fcn.00410c50
mov esi, dword [esp + 0x38c]
cmp dword [esp + 0x184], 0
jne 0x411830
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
add esp, 4
mov ecx, esi
call edx
test eax, eax
mov eax, vtable.ByteStream.0
mov dword [esp + 0x378], 0xffffffff
lea ecx, [esp + 0xcc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
je 0x411a55
call fcn.0040ff60
xor eax, eax
jmp 0x411a66
lea ecx, [esp + 0xa4]
call fcn.004106f0
test eax, eax
je 0x4119fe
call fcn.00411390
jmp 0x411996
call fcn.004114b0
test eax, eax
jne 0x411996
mov eax, dword [esp + 0x16c]
cmp eax, 4
jne 0x411a2f
cmp dword [esp + 0x14], 0
je 0x411a2f
lea ecx, [esp + 0xcc]
mov dword [esp + 0x14], ebp
call fcn.00410c50
jmp 0x411996
xor edx, edx
cmp eax, 4
sete dl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd0]
push ecx
mov dword [esp + 0x1c], edx
call fcn.00411650
add esp, 8
jmp 0x411996
call fcn.0040ff60
mov eax, 6
jmp 0x411a66
mov eax, 2
mov ecx, dword [esp + 0x370]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret