Function at 0x4610d0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
je 0x4610f4
test dword [eax], 0x1000
je 0x4610f4
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
jmp 0x461105
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x64]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x68]
mov dword [esp + 0x18], edx
test dword [eax], 0x20000
mov dword [esp + 0x1c], ecx
je 0x46111a
mov edx, dword [eax + 0x78]
mov dword [esp + 0x28], edx
jmp 0x461122
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], 0
lea ebx, [ebx]
mov edi, dword [esp + 0x50]
push 8
push edi
call fcn.00463fd0
add esp, 8
mov ebx, eax
xor esi, esi
test edi, edi
mov dword [esp + 0x10], ebx
jle 0x4611dc
mov edi, dword [esp + 0x4c]
add edi, 6
jmp 0x461160
mov dword [ebx + esi*8], esi
movzx eax, word [edi + 2]
movzx ebx, word [ebp + 8]
movzx ecx, word [edi - 2]
sub ebx, eax
movzx eax, word [ebp + 4]
sub eax, ecx
cdq
mov ecx, eax
movzx eax, word [ebp + 6]
xor ecx, edx
sub ecx, edx
movzx edx, word [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
lea eax, [ecx + ecx*2]
movzx ecx, word [edi - 2]
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, ecx
movzx ecx, word [edi]
sub eax, ecx
movzx ecx, word [ebp + 4]
add eax, ecx
movzx ecx, word [ebp + 6]
add eax, ecx
mov ecx, dword [esp + 0x20]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
add ecx, eax
mov dword [edx + esi*8 + 4], ecx
add esi, 1
add edi, 0xc
cmp esi, dword [esp + 0x50]
mov ebx, edx
jl 0x461160
mov edi, dword [esp + 0x50]
push 0x4610c0
push 8
push edi
push ebx
call dword [sym.imp.MSVCR80.dll_qsort]
mov esi, dword [ebx]
mov edx, dword [esp + 0x5c]
movzx ecx, word [ebp + 4]
mov edi, dword [esp + 0x34]
lea eax, [esi + esi*2]
lea eax, [edx + eax*4]
movzx edx, word [eax + 4]
mov ebx, ecx
sub ebx, edi
add esp, 0x10
cmp edx, ebx
mov dword [esp + 0x20], 0
jl 0x4612c2
lea ebx, [ebx]
add ecx, edi
cmp edx, ecx
jg 0x4612c2
movzx ecx, word [ebp + 6]
movzx edx, word [eax + 6]
mov ebx, ecx
sub ebx, dword [esp + 0x18]
cmp edx, ebx
jl 0x4612c2
mov ebx, dword [esp + 0x18]
add ecx, ebx
cmp edx, ecx
jg 0x4612c2
movzx ecx, word [ebp + 8]
movzx edx, word [eax + 8]
mov ebx, ecx
sub ebx, dword [esp + 0x1c]
cmp edx, ebx
jl 0x4612c2
mov ebx, dword [esp + 0x1c]
add ecx, ebx
cmp edx, ecx
jg 0x4612c2
cmp dword [esp + 0x28], 0
je 0x46139f
mov ebx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
call sub.XLIB.dll_Ordinal_10
add esp, 0xc
test eax, eax
jne 0x461349
mov esi, dword [esp + 0x20]
add esi, 1
cmp esi, dword [esp + 0x50]
mov dword [esp + 0x20], esi
je 0x4612ca
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + esi*8]
movzx ecx, word [ebp + 4]
mov eax, dword [esp + 0x4c]
lea edx, [esi + esi*2]
lea eax, [eax + edx*4]
movzx edx, word [eax + 4]
mov ebx, ecx
sub ebx, edi
cmp edx, ebx
jge 0x461220
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
cmp edi, 2
jne 0x4612dc
push ebx
call sub.XLIB.dll_Ordinal_153
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call sub.HCLXT.dll_Ordinal_126
add esp, 4
test esi, esi
je 0x46133c
cmp esi, dword [esp + 0x50]
je 0x46133c
mov esi, dword [esp + 0x34]
push ebp
push esi
push ebx
call sub.XLIB.dll_Ordinal_10
add esp, 0xc
test eax, eax
jne 0x4613e4
cmp edi, 1
jne 0x461318
push ebx
call sub.XLIB.dll_Ordinal_141
add esp, 4
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
push esi
push ebx
call sub.XLIB.dll_Ordinal_18
add edi, 1
add esp, 0x10
cmp edi, 2
mov dword [esp + 0x14], edi
jle 0x461130
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x14], 2
jne 0x461359
push ebx
call sub.XLIB.dll_Ordinal_153
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call sub.HCLXT.dll_Ordinal_126
mov eax, dword [esp + 0x50]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4]
mov esi, dword [esp + 0x48]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov dword [edx], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], 1
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax]
mov edx, dword [ecx]
add esp, 4
pop edi
mov dword [esi + edx*4], eax
add dword [ecx], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x14], 2
jne 0x4613b3
mov ecx, dword [esp + 0x30]
push ecx
call sub.XLIB.dll_Ordinal_153
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call sub.HCLXT.dll_Ordinal_126
mov ecx, dword [esp + 0x50]
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [ebp]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [eax], edx
mov eax, dword [esp + 0x48]
mov dword [ecx], 1
mov edx, dword [eax]
mov ecx, dword [ebp]
pop edi
mov dword [esi + edx*4], ecx
add dword [eax], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret