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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi], 0x1c
mov dword [ebp - 0x18], ebx
jae 0x76647c56
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x76647f22
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], ebx
jbe 0x76647c6e
add ebx, dword [eax]
add eax, 8
dec ecx
jne 0x76647c63
mov dword [ebp - 0x10], ebx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
xor eax, eax
test edx, edx
jbe 0x76647c82
add eax, dword [ecx]
add ecx, 8
dec edx
jne 0x76647c7a
cmp dword [esi], 0x24
jb 0x76647ca1
mov edx, dword [esi + 0x1c]
test edx, edx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 4], edx
jbe 0x76647ca5
add ebx, dword [ecx]
add ecx, 8
dec edx
jne 0x76647c94
mov dword [ebp - 0x10], ebx
jmp 0x76647ca5
and dword [ebp - 4], 0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
add ecx, edx
add ecx, dword [ebp - 4]
lea eax, [eax + ecx*8 + 0x78]
add eax, ebx
push eax
call fcn.765fc04a
mov ebx, eax
test ebx, ebx
je 0x76647f22
cmp dword [esi + 0xc], 0
jne 0x76647cd6
cmp dword [ebp - 4], 0
je 0x76647d8f
or byte [ebx], 0x80
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
add eax, edi
add eax, dword [ebp - 4]
test edi, edi
lea eax, [ebx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jbe 0x76647d3f
mov dword [ebp - 0x14], edi
mov esi, dword [edx]
mov dword [ecx], esi
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
add eax, dword [edx]
add edx, 8
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jne 0x76647d07
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
test edi, edi
mov edx, dword [esi + 0x20]
mov dword [ebp - 8], edx
jbe 0x76647d8f
mov dword [ebp - 0x14], edi
mov esi, dword [edx]
mov dword [ecx], esi
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [edx], 0
je 0x76647d73
mov byte [eax], 0xa1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
add eax, dword [edx]
add edx, 8
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
jne 0x76647d4f
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0
je 0x76647e20
or byte [ebx], 0x40
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x76647db3
cmp dword [ebp - 4], eax
jne 0x76647db3
lea eax, [ebx + 0x78]
jmp 0x76647dbe
mov ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [ebx + 0x64]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x6c], eax
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
add eax, edi
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], edx
lea eax, [ecx + eax*8 + 0x78]
mov ecx, dword [ebx + 0x6c]
add eax, ebx
test edi, edi
mov dword [ebp - 0x10], ecx
jbe 0x76647e20
mov dword [ebp - 0xc], edi
mov esi, dword [edx]
mov dword [ecx], esi
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
add eax, dword [edx]
add edx, 8
add ecx, 8
dec dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
jne 0x76647de8
mov esi, dword [ebp + 0x10]
push 0x114
call fcn.765fc04a
mov edi, eax
test edi, edi
je 0x76647f22
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + 0x70]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push esi
call fcn.766473b4
test eax, eax
je 0x76647f22
cmp dword [ebp - 4], 0
ja 0x76647e75
cmp dword [ebp + 0x10], 0
jne 0x76647e75
test byte [ebp + 0xc], 0x40
je 0x76647e85
push dword [ebp + 0x14]
call fcn.76641d13
test eax, eax
je 0x76647e85
and dword [ebp + 0xc], 0xffffffbf
jmp 0x76647e85
push dword [ebp + 0x14]
call fcn.76641d13
test eax, eax
jne 0x76647e6f
or dword [ebp + 0xc], 0x40
mov ecx, dword [ebp + 0xc]
test cl, 0x40
jne 0x76647ea1
cmp dword [ebp - 4], 0
ja 0x76647ea1
cmp dword [ebp + 0x10], 0
jne 0x76647ea1
xor eax, eax
inc eax
mov dword [ebx + 4], eax
jmp 0x76647eab
xor eax, eax
mov dword [ebx + 4], 3
inc eax
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 8]
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], 2
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
je 0x76647ee3
push dword [ebp + 0x14]
call fcn.76641cba
inc eax
push eax
push dword [ebp + 0x14]
call fcn.765ff93c
test eax, eax
mov dword [edi + 0x44], eax
je 0x76647f22
cmp dword [ebp + 0x18], 0
je 0x76647efa
push 0xc
push dword [ebp + 0x18]
call fcn.765ff93c
test eax, eax
mov dword [edi + 0x78], eax
je 0x76647f22
lea eax, [ebx + 8]
push eax
push edi
push esi
call fcn.766474c3
test eax, eax
je 0x76647f22
cmp dword [edi + 0x78], 0
je 0x76647fa4
push esi
push edi
call fcn.7664d669
test eax, eax
jne 0x76647fa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov dword [ebp - 0x18], eax
je 0x76647f61
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x76647f5b
mov eax, dword [ebx + 0x70]
test eax, eax
mov esi, ecx
jbe 0x76647f53
mov dword [ebp + 0xc], eax
push esi
call fcn.76645f24
add esi, 0xd4
dec dword [ebp + 0xc]
jne 0x76647f42
push dword [ebx + 0x74]
call fcn.765e40a0
push ebx
call fcn.765e40a0
test edi, edi
je 0x76647fa4
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x76647f76
push 1
call fcn.765fa5cf
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x76647f84
push 1
call fcn.765fb391
push dword [edi + 0x5c]
call fcn.765e40a0
push dword [edi + 0x44]
call fcn.765e40a0
push dword [edi + 0x78]
call fcn.765e40a0
push edi
call fcn.765e40a0
xor edi, edi
push dword [ebp - 0x18]
call fcn.765ffbbd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14