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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009c7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x100f5084]
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x80], 0
push 1
push eax
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call sym.HncFoundation.dll_public:_void___thiscall_CHncHanjaDic::constructor_unsigned_short_int_const___unsigned_short_int_const___int_
mov byte [esp + 0x80], 1
or ebx, 0xffffffff
cmp dword [sym.HncFoundation.dll_int_CHncHanjaDic::m_s_open_refcnt], 0
jg 0x1008062b
xor esi, esi
jmp 0x10080c02
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10080630
sub esi, ecx
xor ebx, ebx
sar esi, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
test esi, esi
je 0x10080bfd
mov dword [esp + 0x30], 0x3400
mov dword [esp + 0x3c], 0x9faf
mov dword [esp + 0x40], 0xa700
mov dword [esp + 0x44], 0xaa2a
mov dword [esp + 0x34], 0xf900
mov dword [esp + 0x38], 0xfa2f
mov ecx, 0x314e
lea edx, [ecx - 0x1d]
cmp ebx, esi
jae 0x100806d1
lea ecx, [ecx]
movzx eax, word [edi + ebx*2]
cmp word [esp + 0x30], ax
ja 0x100806a2
cmp word [esp + 0x3c], ax
jae 0x100806be
cmp word [esp + 0x40], ax
ja 0x100806b0
cmp word [esp + 0x44], ax
jae 0x100806be
cmp word [esp + 0x34], ax
ja 0x100806cd
cmp word [esp + 0x38], ax
jb 0x100806cd
cmp dx, ax
ja 0x100806c8
cmp cx, ax
jae 0x100806cd
inc ebx
cmp ebx, esi
jb 0x10080690
mov dword [esp + 0x14], ebx
xor eax, eax
mov dword [esp + 0x68], 7
lea edi, [edi + ebx*2]
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x20], edi
cmp word [edi], ax
jne 0x100806f8
xor ecx, ecx
jmp 0x1008070f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080700
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x5c]
call fcn.1002a950
mov byte [esp + 0x80], 2
cmp dword [esp + 0x64], 0
jbe 0x10080b68
lea ecx, [ecx]
cmp dword [esp + 0x68], 8
lea ebx, [esp + 0x54]
mov ecx, dword [0x100f5084]
mov esi, ecx
cmovae ebx, dword [esp + 0x54]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], esi
test ebx, ebx
jne 0x10080756
xor edi, edi
jmp 0x1008076f
mov edi, ebx
lea edx, [edi + 2]
jmp 0x10080760
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10080760
sub edi, edx
sar edi, 1
mov eax, dword [ecx - 0xc]
lea edx, [ecx - 0xc]
cmp eax, 1
jg 0x1008077f
cmp edi, dword [ecx - 4]
jle 0x100807ef
cmp eax, 0xfffffffe
je 0x100807a6
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1008079a
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [0x100f5084]
mov esi, ecx
mov dword [esp + 0x6c], esi
test edi, edi
jne 0x100807b2
mov esi, ecx
mov dword [esp + 0x6c], esi
jmp 0x10080801
lea ebx, [edi + 9]
and ebx, 0xfffffff8
lea eax, [ebx*2 + 0xc]
push eax
call fcn.1009427d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1008080a
lea eax, [ebx - 1]
mov dword [ecx], 1
mov ebx, dword [esp + 0x24]
lea esi, [ecx + 0xc]
mov dword [ecx + 8], eax
xor eax, eax
mov word [ecx + edi*2 + 0xc], ax
mov dword [ecx + 4], edi
mov dword [esp + 0x6c], esi
test edi, edi
jle 0x10080801
lea eax, [edi + edi]
push eax
push ebx
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [esi - 8], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0xc]
mov byte [esp + 0x80], 3
cmp dword [edi], 1
jg 0x1008088b
mov ecx, dword [esi - 8]
lea eax, [ecx + 2]
cmp eax, dword [esi - 4]
jg 0x1008088b
mov eax, dword [0x100c5888]
mov dword [esi + ecx*2], eax
add dword [esi - 8], 2
xor ecx, ecx
mov eax, dword [esi - 8]
mov word [esi + eax*2], cx
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
cmp dword [sym.HncFoundation.dll_int_CHncHanjaDic::m_s_open_refcnt], 0
jle 0x10080922
test esi, esi
je 0x10080922
push 0x20
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
test eax, eax
jne 0x10080922
mov eax, dword [0x100fddf8]
push 0
push 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
je 0x10080922
mov eax, 1
jmp 0x10080924
mov ebx, dword [edi + 4]
mov dword [esp + 0x4c], esi
lea eax, [ebx + 2]
test eax, eax
je 0x1008083a
add eax, 9
and eax, 0xfffffff8
mov dword [esp + 0x24], eax
lea eax, [eax*2 + 0xc]
push eax
call fcn.1009427d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1008083a
mov eax, dword [esp + 0x24]
lea esi, [ecx + 0xc]
dec eax
mov dword [ecx], 1
mov dword [ecx + 8], eax
xor edx, edx
mov word [ecx + ebx*2 + 0x10], dx
lea eax, [ebx + 2]
mov dword [ecx + 4], eax
mov dword [esp + 0x6c], esi
test ebx, ebx
jle 0x100808f0
lea eax, [ebx + ebx]
push eax
push dword [esp + 0x50]
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, dword [0x100c5888]
mov dword [esi + ebx*2], eax
cmp dword [edi], 0xfffffffe
je 0x1008083a
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1008083a
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
push edi
call ebx
add esp, 4
jmp 0x10080840
xor eax, eax
cmp dword [ebp + 0x18], 0
jne 0x1008096c
test eax, eax
jne 0x100809e8
cmp dword [esp + 0x68], 8
lea edi, [esp + 0x54]
cmovae edi, dword [esp + 0x54]
cmp dword [sym.HncFoundation.dll_int_CHncHanjaDic::m_s_open_refcnt], eax
jle 0x10080970
test edi, edi
je 0x10080970
push 0x20
push edi
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
test eax, eax
jne 0x10080970
mov eax, dword [0x100fddf8]
push 0
push 0
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x100809e8
mov edi, dword [esp + 0x20]
mov ecx, 0x3131
movzx eax, word [edi]
cmp cx, ax
ja 0x1008098b
mov ecx, 0x314e
cmp cx, ax
jae 0x100809ec
mov eax, dword [esp + 0x64]
lea ecx, [eax - 1]
cmp eax, ecx
jb 0x10080b98
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
mov dword [esp + 0x64], ecx
cmovae eax, dword [esp + 0x54]
add esi, 0xfffffff4
xor edx, edx
mov byte [esp + 0x80], 2
mov word [eax + ecx*2], dx
cmp dword [esi], 0xfffffffe
je 0x100809d4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x100809d4
push esi
call ebx
add esp, 4
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x64], 0
ja 0x10080730
jmp 0x10080b5f
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
add eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [edx]
mov dword [esp + 0x34], 1
call dword [edx]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
cmp dword [esp + 0x68], 8
push dword [ebp + 0x18]
cmovae ecx, dword [esp + 0x58]
mov edx, dword [eax]
xor eax, eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
setne al
push eax
push 1
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call dword [edx + 8]
mov ebx, dword [esp + 0x14]
cmp eax, 1
je 0x10080ac8
cmp eax, 0x500b
je 0x10080b39
cmp eax, 0x399e
jne 0x10080ab6
cmp dword [esp + 0x64], 1
jb 0x10080b98
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
mov dword [esp + 0x64], 1
cmovae eax, dword [esp + 0x54]
add esi, 0xfffffff4
xor ecx, ecx
mov byte [esp + 0x80], 2
mov word [eax + 2], cx
cmp dword [esi], 0xfffffffe
je 0x100809d8
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x100809d8
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x100809d8
add esi, 0xfffffff4
cmp eax, 2
je 0x10080ba3
inc ebx
jmp 0x10080b40
movzx eax, word [edi]
mov ecx, 0x3131
cmp cx, ax
ja 0x10080b28
mov ecx, 0x314e
cmp cx, ax
jb 0x10080b28
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x50]
cmp dword [esp + 0x68], 8
movzx edi, word [eax]
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__
lea ecx, [esp + 0x50]
call sym.HncFoundation.dll_protected:_int___thiscall_CHncStringW::CopyBeforeWrite_void_
test eax, eax
je 0x10080b12
mov eax, dword [esp + 0x50]
mov word [eax], di
mov edi, dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x64]
push dword [esp + 0x54]
mov eax, dword [edi]
call dword [eax + 4]
inc ebx
jmp 0x10080b3d
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x64]
push dword [esp + 0x54]
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, dword [esp + 0x64]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
mov dword [esp + 0x14], ebx
je 0x10080b5f
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10080b5f
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x64], 0
jne 0x10080b6f
inc ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x80], 1
cmp dword [esp + 0x68], 8
jb 0x10080b8b
push dword [esp + 0x54]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp ebx, esi
jae 0x10080bee
mov edi, dword [esp + 0x48]
jmp 0x10080681
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [esi], 0xfffffffe
je 0x10080bbe
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10080bbe
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [esp + 0x68], 8
jb 0x10080bd2
push dword [esp + 0x54]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea esi, [eax + 2]
jmp 0x10080bff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10080bfd
mov esi, 1
jmp 0x10080bff
xor esi, esi
or ebx, 0xffffffff
mov byte [esp + 0x80], 0
cmp dword [sym.HncFoundation.dll_int_CHncHanjaDic::m_s_open_refcnt], 0
jle 0x10080c40
dec dword [sym.HncFoundation.dll_int_CHncHanjaDic::m_s_open_refcnt]
jne 0x10080c40
mov ecx, dword [0x100fddf8]
test ecx, ecx
je 0x10080c40
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov eax, dword [0x100fddf8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff4
cmp dword [eax], 0xfffffffe
je 0x10080c66
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10080c66
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret