Function at 0x79bf1958
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, pe_nt_image_headers32
sub esp, 0x2b0
cmp dword [ebp + 0xc], eax
jae 0x79bf196f
xor al, al
leave
ret
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], eax
jb 0x79bf196b
cmp dword [ecx + 0x50], 0x61546d56
jne 0x79bf196b
push edi
mov edi, dword [ecx + 0xe4]
lea eax, [edi*8 + 0x100]
cmp dword [ebp + 0xc], eax
jae 0x79bf199a
xor al, al
jmp 0x79bf1ba6
push ebx
xor ebx, ebx
xor edx, edx
push esi
cmp edi, ebx
jbe 0x79bf19d0
lea eax, [ecx + 0x104]
cmp dword [eax], ebx
je 0x79bf19c8
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax - 4]
jb 0x79bf1ba2
mov esi, dword [eax - 4]
add esi, dword [eax]
cmp dword [ebp + 0xc], esi
jb 0x79bf1ba2
inc edx
add eax, 8
cmp edx, edi
jb 0x79bf19aa
xor dl, dl
xor esi, esi
lea eax, [ecx + 0x100]
cmp esi, edi
jae 0x79bf19fd
cmp dword [eax], 0x100
ja 0x79bf19f5
mov ecx, dword [eax + 4]
add ecx, dword [eax]
cmp ecx, 0x180
jb 0x79bf19f5
mov dl, 1
inc esi
add eax, 8
cmp dl, bl
je 0x79bf19da
cmp dl, bl
je 0x79bf1ba2
lea esi, [ebp - 4]
call fcn.79bf173e
mov esi, eax
cmp esi, ebx
jne 0x79bf1a19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
mov word [ebp - 0x230], ax
cmp dword [ebp - 4], ebx
je 0x79bf1ac9
mov edi, 0x104
push edi
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x79bf1a84
xor edx, edx
lea eax, [ebp - 0x230]
cmp word [ebp - 0x230], bx
je 0x79bf1a7b
movzx ecx, word [ebp - 0x230]
cmp cx, 0x5c
jne 0x79bf1a65
mov edx, eax
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x79bf1a5d
cmp edx, ebx
je 0x79bf1a7b
xor eax, eax
mov word [edx + 2], ax
jmp 0x79bf1a84
xor eax, eax
mov word [ebp - 0x230], ax
cmp word [ebp - 0x230], bx
je 0x79bf1ac9
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0xc
cmp eax, edi
jae 0x79bf1ac9
push 0x79bf1d8e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
jne 0x79bf1ade
push 0x79bf1d8e
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x79bf1ba2
push 0x79bf1d79
push edi
call esi
push 0x79bf1d6a
push edi
mov dword [ebp - 4], eax
call esi
push 0x79bf1d5a
push edi
mov dword [ebp - 0x1c], eax
call esi
push 0x79bf1d4c
push edi
mov dword [ebp - 0x24], eax
call esi
push 0x79bf1d36
push edi
mov dword [ebp - 0x28], eax
call esi
push 0x79bf1d25
push edi
mov dword [ebp - 0x20], eax
call esi
push 0x79bf1d15
push edi
mov dword [ebp - 0x18], eax
call esi
push 0x79bf1d01
push edi
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x1c], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x24], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x28], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x20], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x18], ebx
je 0x79bf1b9b
cmp dword [ebp - 0x14], ebx
je 0x79bf1b9b
cmp eax, ebx
je 0x79bf1b9b
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call dword [ebp - 4]
test eax, eax
je 0x79bf1b9b
mov eax, dword [0x79bf2a14]
add eax, 0x14
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x79bf1ba9
push ebx
push dword [ebp + 0xc]
call dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
pop ebx
pop edi
leave
ret
xor eax, eax
mov word [esi + 2], ax
mov byte [esi], 6
mov byte [esi + 1], 2
mov dword [esi + 4], 0x2400
mov dword [esi + 8], 0x31415352
mov eax, dword [0x79bf2a14]
shl eax, 3
mov dword [esi + 0xc], eax
mov eax, dword [0x79bf2a10]
mov dword [esi + 0x10], eax
push dword [0x79bf2a14]
lea eax, [esi + 0x14]
mov ecx, 0x79bf2a18
call fcn.79bf169a
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x1c]
push esi
push ebx
test eax, eax
jne 0x79bf1c13
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x79bf1b94
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x79bf1c43
push dword [ebp - 0x10]
call dword [ebp - 0x14]
jmp 0x79bf1b94
mov esi, dword [ebp + 8]
push 0x80
lea ecx, [esi + 0x60]
lea eax, [ebp - 0x2b0]
call fcn.79bf169a
xor edx, edx
pop ecx
mov dword [ebp - 4], ebx
cmp dword [esi + 0xe4], ebx
jbe 0x79bf1cba
add esi, 0x100
cmp dword [esi + 4], ebx
je 0x79bf1ca6
mov eax, dword [esi]
cmp edx, eax
jae 0x79bf1c8d
mov ecx, dword [ebp + 8]
add ecx, edx
jmp 0x79bf1c84
mov byte [ecx], bl
mov eax, dword [esi]
inc ecx
sub eax, edx
add eax, dword [ebp + 8]
cmp ecx, eax
jb 0x79bf1c7f
mov eax, dword [esi]
add eax, dword [ebp + 8]
push ebx
push dword [esi + 4]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x28]
test eax, eax
je 0x79bf1cf6
mov edx, dword [esi]
add edx, dword [esi + 4]
inc dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esi, 8
cmp ecx, dword [eax + 0xe4]
jb 0x79bf1c6d
push ebx
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x2b0]
push 0x80
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x20]
push dword [ebp - 0xc]
test eax, eax
je 0x79bf1cf9
call dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [ebp - 0x14]
push ebx
push dword [ebp + 0xc]
call dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x79bf1ba4
push dword [ebp - 0xc]
call dword [ebp - 0x18]
jmp 0x79bf1c38