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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b055
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [esp + 0x44], edx
mov byte [esp + 0x18], cl
je 0x10017fa3
mov dword [esp + 0x10], 0x2af1
cmp dword [esp + 0x10], 0x2d0e
push 0
pop ebx
jle 0x10017cd7
mov esi, ebx
mov dword [esp + 0x24], ebx
mov edi, ebx
mov dword [esp + 0x1c], ebx
mov eax, esi
mov esi, ebx
cdq
idiv edi
mov edi, edx
mov eax, edi
lea ecx, [esp + 0x70]
cdq
idiv esi
mov eax, edx
cdq
push edx
push eax
call fcn.100026cb
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10017c7a
mov eax, dword [eax]
push eax
call fcn.10041403
pop ecx
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.1000e4ee
inc esi
cmp esi, 0x1af6
jl 0x10017c5d
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 0x6d3d
jl 0x10017c54
inc esi
mov dword [esp + 0x24], esi
cmp esi, 0x4fc6
jl 0x10017c4e
push 0x3be
push 0x1a1e
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
cmp dword [esp + 0x10], 0x29ec
jge 0x10017cec
push str.hjjz_lsdgbzwt_xnl_aes_pqzojtbs_uqlki
call fcn.10041403
pop ecx
or dword [esp + 0xac], 0xffffffff
mov dword [esp + 0x28], 0x7eaa
cmp dword [esp + 0x28], 0x8246
jle 0x10017f40
mov esi, ebx
mov dword [esp + 0x40], ebx
mov edi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0x1600
cmp dword [esp + 0x10], 0x8cc
jge 0x10017ee6
lea eax, [esp + 0x20]
push eax
push 0x10065dec
call fcn.1004111b
pop ecx
pop ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.10001cf5
mov dword [esp + 0xac], 2
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
lea eax, [esi + 0x1f]
mov dword [esp + 0x38], ebx
shr eax, 5
push eax
mov dword [esp + 0x40], ebx
call fcn.1001c27f
mov dword [esp + 0x3c], ebx
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 3
call fcn.1001bfa0
mov edx, dword [esp + 0x20]
mov edi, ebx
test edx, edx
jle 0x10017dd5
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x30]
push ebx
push 0x10065c0c
call fcn.1004111b
pop ecx
xor eax, eax
mov edx, edi
pop ecx
mov ecx, edi
shr edx, 5
inc eax
and ecx, 0x1f
shl eax, cl
add ebx, 4
not eax
and dword [esi + edx*4], eax
inc edi
mov edx, dword [esp + 0x20]
cmp edi, edx
jl 0x10017da6
xor ebx, ebx
mov eax, ebx
mov edi, ebx
mov dword [esp + 0x1c], eax
test edx, edx
jle 0x10017ea1
mov esi, ebx
test edx, edx
jle 0x10017e38
mov ebx, dword [esp + 0x30]
mov eax, esi
mov ecx, esi
shr eax, 5
and ecx, 0x1f
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
mov dword [esp + 0x2c], ecx
shl eax, cl
mov ecx, dword [esp + 0x10]
test dword [ebx + ecx*4], eax
jne 0x10017e2d
mov eax, dword [esp + 0x4c]
cmp edi, dword [eax + esi*4]
jl 0x10017e2d
mov ecx, dword [esp + 0x2c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esp + 0x10]
or dword [ebx + ecx*4], eax
inc edi
mov edx, dword [esp + 0x20]
inc esi
cmp esi, edx
jl 0x10017def
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, edx
jge 0x10017ea1
inc eax
lea esi, [edx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
js 0x10017e93
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x4c]
mov eax, esi
mov ecx, esi
shr eax, 5
and ecx, 0x1f
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
mov dword [esp + 0x2c], ecx
shl eax, cl
mov ecx, dword [esp + 0x10]
test dword [edx + ecx*4], eax
jne 0x10017e86
cmp edi, dword [ebx + esi*4]
jl 0x10017e86
mov ecx, dword [esp + 0x2c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esp + 0x10]
or dword [edx + ecx*4], eax
inc edi
dec esi
jns 0x10017e50
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp edi, edx
jge 0x10017ea1
inc eax
mov dword [esp + 0x1c], eax
jmp 0x10017de5
push eax
push 0x10065dec
call fcn.10041403
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
pop ecx
pop ecx
test eax, eax
je 0x10017ecd
push eax
call fcn.100401e2
pop ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
or dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.10001d31
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov eax, esi
lea ecx, [esp + 0x58]
cdq
idiv edi
mov eax, edx
cdq
push edx
push eax
call fcn.100026cb
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10017f03
mov eax, dword [eax]
push eax
call fcn.10041403
pop ecx
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.1000e4ee
inc edi
mov dword [esp + 0x24], edi
cmp edi, 0x4805
jl 0x10017d16
inc esi
mov dword [esp + 0x40], esi
cmp esi, 0x7c61
jl 0x10017d10
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp byte [esp + 0x18], 0
je 0x10017f56
push 0x1183
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x10017f8c
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x88]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
imul edx, dword [edi], 0x18
add edx, dword [esi]
call fcn.1001731f
pop ecx
imul ecx, dword [edi], 0x18
push eax
add ecx, dword [esi]
call fcn.1000dbf1
push ebx
push 1
lea ecx, [esp + 0x90]
call fcn.1000e6c2
cmp dword [esp + 0x28], 0x7e07
jge 0x10017fb6
push str.crtnnh_vwlxs_rlvajavg_cub
call fcn.10041403
pop ecx
jmp 0x10017fb6
xor ebx, ebx
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x10017fb6
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret