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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
cmp dword [esp + 0x70], 0
jne 0x791bd3
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f1916
mov dword [esp + 0x18], 0x6f1e11
mov dword [esp + 0x14], 0x256
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f173c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f1916
mov dword [esp + 0x10], 0x6f1e11
mov dword [esp + 0xc], 0x256
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f1768
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
cmp dword [esp + 0x78], 0
jne 0x791c6f
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f1918
mov dword [esp + 0x18], 0x6f1e11
mov dword [esp + 0x14], 0x257
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f173c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f1918
mov dword [esp + 0x10], 0x6f1e11
mov dword [esp + 0xc], 0x257
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f1768
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
mov edi, dword [esp + 0x70]
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x50
jbe 0x791cc2
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1b0c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
mov eax, 0xffffffff
jmp 0x79238f
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.00781092
mov dword [esp + 0x28], eax
cmp byte [eax], 0x5b
jne 0x791d19
inc eax
mov dword [esp + 0x2c], eax
mov dword [esp + 4], 0x5d
mov dword [esp], eax
call 0x912028
test eax, eax
jne 0x791d28
mov dword [esp + 0xc], 0x6f1b30
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ebx, 0
jmp 0x791d2a
mov ebx, eax
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call 0x912028
mov ebp, eax
test eax, eax
jne 0x791d4c
test ebx, ebx
je 0x791d48
mov eax, ebx
jmp 0x791d4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call 0x912028
mov dword [esp + 0x24], eax
test eax, eax
je 0x791d6c
mov byte [eax], 0
inc eax
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x791d75
mov byte [ebp], 0
inc ebp
test ebx, ebx
je 0x791d7c
mov byte [ebx], 0
cmp dword [esp + 0x24], 0
je 0x791e2a
test ebp, ebp
je 0x791ed3
cmp ebp, dword [esp + 0x24]
jb 0x791e32
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f1b67
mov dword [esp + 0x18], 0x6f1e11
mov dword [esp + 0x14], 0x277
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f173c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f1b67
mov dword [esp + 0x10], 0x6f1e11
mov dword [esp + 0xc], 0x277
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f1768
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
test ebp, ebp
je 0x791ed3
test ebx, ebx
je 0x791ed3
cmp ebp, ebx
ja 0x791ed3
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f1b73
mov dword [esp + 0x18], 0x6f1e11
mov dword [esp + 0x14], 0x279
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f173c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f1718
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f1b73
mov dword [esp + 0x10], 0x6f1e11
mov dword [esp + 0xc], 0x279
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f1768
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
mov ecx, 0x14
mov al, 0
mov edi, dword [esp + 0x78]
rep stosb byte es:[edi], al
mov edi, 0x6f1aa9
mov cl, 2
mov esi, dword [esp + 0x2c]
repe cmpsb byte [esi], byte es:[edi]
seta al
setb dl
cmp al, dl
jne 0x791f47
test byte [esp + 0x74], 1
je 0x791f19
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call fcn.0078ecf5
mov ebx, 0
mov esi, 1
jmp 0x792093
mov dword [esp], 0
call 0x90c238
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0078f6c6
mov ebx, 2
mov esi, 1
jmp 0x792093
mov edi, 0x6f1b83
mov ecx, 3
mov esi, dword [esp + 0x2c]
repe cmpsb byte [esi], byte es:[edi]
seta al
setb dl
cmp al, dl
jne 0x791f96
test byte [esp + 0x74], 1
je 0x791f96
mov dword [esp], 0
call 0x90c238
sub esp, 4
mov dword [esp + 4], eax
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call fcn.0078f6c6
mov ebx, 2
mov esi, 1
jmp 0x792093
mov edi, 0x6f1b86
mov ecx, 3
mov esi, dword [esp + 0x2c]
repe cmpsb byte [esi], byte es:[edi]
seta al
setb dl
cmp al, dl
jne 0x791fda
test byte [esp + 0x74], 1
je 0x791fda
mov dword [esp + 4], 0x798aa0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0078f783
mov ebx, 0x17
mov esi, 1
jmp 0x792093
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], 0x17
call fcn.0077f225
test eax, eax
jle 0x79201a
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0078f8e1
mov ebx, 0x17
mov esi, 0
jmp 0x792093
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], 2
call fcn.0077f225
test eax, eax
jle 0x79205a
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0078f6c6
mov ebx, 2
mov esi, 0
jmp 0x792093
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1b8c
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0078f154
mov edi, eax
cmp dword [esp + 0x7c], 0
je 0x792244
test ebp, ebp
je 0x792211
mov dword [esp + 8], 0xa
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call 0x912098
mov edx, dword [esp + 0x4c]
cmp byte [edx], 0
jne 0x79211c
cmp eax, 0x80
ja 0x7920ef
cmp bx, 2
jne 0x7921c1
cmp eax, 0x20
jle 0x79223c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1bbc
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], 2
call fcn.0077f225
test eax, eax
jle 0x792188
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call 0x90c1f0
sub esp, 4
mov dword [esp], eax
call fcn.007917e7
test eax, eax
jns 0x7921c1
mov dword [esp], ebp
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1bf8
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1c30
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
cmp bx, 0x17
jne 0x79223c
test edi, edi
je 0x79223c
lea edx, [eax - 0x21]
cmp edx, 0x3e
ja 0x792200
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1c60
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
and eax, 0x8000001f
jns 0x79220c
dec eax
or eax, 0xffffffe0
inc eax
add eax, 0x60
jmp 0x79223c
test esi, esi
jne 0x792230
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
cmp ax, 2
je 0x792237
cmp ax, 0x17
sete al
movzx eax, al
shl eax, 7
jmp 0x79223c
mov eax, 0
jmp 0x79223c
mov eax, 0x20
mov edx, dword [esp + 0x7c]
mov byte [edx], al
jmp 0x792281
test ebp, ebp
je 0x792281
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1c98
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
cmp dword [esp + 0x80], 0
je 0x792317
cmp dword [esp + 0x84], 0
jne 0x7922a4
lea edx, [esp + 0x36]
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x80]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00791831
test eax, eax
js 0x792370
mov edx, dword [esp + 0x84]
mov ax, word [edx]
mov edx, dword [esp + 0x80]
cmp word [edx], ax
je 0x792354
lea eax, [esp + 0x36]
cmp dword [esp + 0x84], eax
jne 0x792354
mov dword [esp + 0xc], 0x6f1cc4
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
cmp dword [esp + 0x24], 0
je 0x792354
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f1cfc
mov dword [esp + 8], 0x6f1df7
mov dword [esp + 4], 1
mov dword [esp], 4
call fcn.0077d2e6
jmp 0x792370
cmp dword [esp + 0x28], 0
je 0x792367
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call 0x911fb0
mov edx, dword [esp + 0x78]
movzx eax, word [edx]
jmp 0x79238f
cmp dword [esp + 0x28], 0
je 0x79238a
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call 0x911fb0
mov eax, 0xffffffff
jmp 0x79238f
mov eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret