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

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebp, ebp
sub eax, 2
mov ebx, esi
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
je 0x60323
sub eax, 0x1e
je 0x60323
mov eax, 1
jmp 0x60325
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x98]
lea edi, [esp + 0x20]
call fcn.000608b0
test eax, eax
je 0x6063c
xor eax, eax
cmp dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
jle 0x60623
jmp 0x60360
mov esi, dword [esp + 0x94]
lea esp, [esp]
test esi, esi
mov edx, dword [esp + 0x18]
mov ebp, dword [edx + eax*4]
mov dword [esp + 0x24], ebp
je 0x6039d
mov ecx, dword [esi + 0xc4]
mov edi, dword [ecx + 0x20]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call fcn.000458c0
test eax, eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], 0
je 0x603a5
mov dword [esp + 0x20], 1
cmp dword [esp + 0x88], 2
jne 0x60420
test ebx, ebx
je 0x60420
cmp dword [esp + 0x14], 1
jle 0x60420
mov edi, dword [esp + 0x80]
mov dword [ebx + 0x108], 0
cmp dword [edi + 0x14], 0
jle 0x603f9
cmp dword [ebx + 0x104], 0
jle 0x603e9
lea esi, [ebx + 0xf4]
call fcn.0005f670
mov ebx, dword [esp + 0x10]
push edi
add ebx, 0xf4
call fcn.0005f900
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x8c]
mov eax, esi
mov ecx, dword [eax]
lea edx, [ebx + 0xf4]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
jmp 0x6042e
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x80]
xor eax, eax
cmp dword [esp + 0x20], eax
je 0x6060e
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
push edi
mov dword [esp + 0x7c], ecx
push ebp
lea ebx, [esp + 0x60]
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], eax
call fcn.00060720
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
mov edx, ebx
mov ebx, dword [esp + 0x90]
push edx
push ebx
push esi
push eax
push ecx
push ebp
mov eax, edi
call fcn.0005fe80
cmp edi, 2
jne 0x605cc
mov ecx, 1
cmp dword [esp + 0x14], ecx
jle 0x605cc
cmp dword [ebx], 0
jne 0x604c5
cmp dword [ebx + 4], 0
je 0x605cc
mov eax, dword [esi]
cmp eax, dword [ebp + 0xc]
jl 0x604ea
cmp eax, dword [ebp + 0x14]
jge 0x604ea
mov esi, dword [esi + 4]
cmp esi, dword [ebp + 0x10]
jl 0x604ea
cmp esi, dword [ebp + 0x18]
jge 0x604ea
mov eax, dword [esp + 0x10]
or dword [eax + 0x160], ecx
jmp 0x604f5
mov eax, dword [esp + 0x10]
and dword [eax + 0x160], 0xfffffffe
mov eax, dword [esp + 0x6c]
test eax, eax
jle 0x605cc
mov ebp, dword [esp + 0x70]
add ebp, 4
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
mov edi, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 4]
add edx, ecx
mov ecx, dword [ebp]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 8]
add ecx, eax
add edx, eax
add edi, 1
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
jge 0x605be
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + edi*4]
lea edx, [ebx + 0xc]
lea ecx, [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.00021090
test eax, eax
je 0x605b5
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x28]
sub edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
sub edx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x34]
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x24]
push eax
mov ecx, esi
lea eax, [esp + 0x4c]
mov esi, ebx
call fcn.000619e0
add edi, 1
cmp edi, dword [esp + 0x14]
jl 0x60550
add ebp, 0x10
sub dword [esp + 0x20], 1
jne 0x60510
mov eax, dword [esp + 0x70]
xor esi, esi
cmp eax, esi
je 0x605dc
push eax
call sub.WIN32K.SYS_EngFreeMem
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jl 0x60355
mov edx, dword [esp + 0x18]
push edx
call sub.WIN32K.SYS_EngFreeMem
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 0x18
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x6c
ret 0x18