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

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x24], eax
or eax, ebp
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x10
jne 0x7951b7
mov eax, dword [edi + 0xc]
push ebx
call eax
mov ecx, dword [edi + 8]
push 2
push 0
push 0
push ebx
mov ebp, eax
mov dword [esp + 0x44], edx
call ecx
mov edx, dword [edi + 0xc]
push ebx
call edx
mov ecx, dword [edi + 8]
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push eax
push ebp
push ebx
mov dword [esp + 0x24], edx
call ecx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x28], edx
cmp ebp, dword [esp + 0xb8]
ja 0x7951df
jb 0x7951cf
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0xb4]
jae 0x7951df
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push 0x40
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.007f4bd4
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
add esp, 0xc
xor ecx, ecx
push ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x3c]
push 4
add eax, 0x58
push ecx
push eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call fcn.007947f4
mov eax, dword [esp + 0xc4]
movzx ecx, word [eax + 0x44]
mov eax, dword [eax + 0x3c]
add esp, 0x14
cmp cx, 0x8664
push 0
push 8
push 0
jne 0x795257
add eax, 0xa8
push eax
lea ecx, [esp + 0x48]
push ecx
jmp 0x795262
add eax, 0x98
push eax
lea edx, [esp + 0x48]
push edx
call fcn.007947f4
mov eax, dword [esp + 0xc4]
movzx eax, word [eax + 0x44]
mov edx, dword [esp + 0xc4]
add esp, 0x14
cmp ax, 0x8664
mov eax, dword [edx + 0x68]
test eax, eax
je 0x795298
push eax
lea ecx, [esp + 0x14]
call fcn.00796b84
add esp, 4
test eax, eax
jne 0x7952a8
mov eax, 0x11
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
push eax
push ecx
push edx
mov ebx, edi
call fcn.00796a54
add esp, 0x14
test eax, eax
jne 0x7952e5
mov eax, 0x12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov ecx, dword [esp + 0xc4]
mov ebx, dword [esp + 0x10]
xor edx, edx
add ecx, ebx
mov eax, edx
adc eax, dword [esp + 0x14]
cmp eax, ebp
jb 0x795306
ja 0x7952d5
cmp ecx, dword [esp + 0x28]
ja 0x7952d5
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x44]
push ebx
push edx
call fcn.007947f4
add esp, 0x14
mov ebx, eax
push 0x10000
mov dword [esp + 0x20], ebx
call dword [fcn.00851598]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x79534b
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
lea eax, [esp + 0x78]
push eax
call fcn.00798774
add esp, 4
push 0
call fcn.0079f674
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.007987c4
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x30], 0
jle 0x7954fe
lea ebx, [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xac]
push edx
lea eax, [esp + 0x7c]
push eax
push ecx
push edi
mov eax, ebx
call fcn.00794b44
add esp, 0x10
test eax, eax
mov dword [esp + 0x20], eax
jne 0x7954fe
mov eax, dword [esp + 0x30]
add eax, 1
add ebx, 0x10
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
jl 0x795384
push 0x54
lea ebx, [esi + 0x10]
push 0
push ebx
call fcn.007f4bd4
add esp, 0xc
lea edx, [esp + 0x78]
mov word [ebx], 0x26
push edx
lea eax, [esp + 0x94]
mov ebx, 1
push eax
mov word [esi + 0x12], 0
mov word [esi + 0x14], bx
call fcn.00798d14
push 0
lea ecx, [esi + 0x16]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.00798984
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
add esp, 0x14
push 0x40
lea edx, [esp + 0x3c]
push 0
push edx
mov word [esi + 0x38], bx
mov word [esi + 0x36], 0x2e
mov word [esi + 0x3a], bx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
call fcn.007f4bd4
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc4]
add esp, 0xc
sub eax, edx
sbb ebp, ecx
mov dword [esp + 0x40], eax
or eax, ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ebp
je 0x7954ee
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
push eax
mov eax, dword [esp + 0xc8]
push eax
push ecx
push edx
lea eax, [esp + 0x48]
push eax
call fcn.007947f4
add esp, 0x14
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x7954d8
lea ebp, [esp + 0x38]
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xac]
push ecx
lea edx, [esp + 0x94]
push edx
push eax
push edi
mov eax, ebp
call fcn.00794b44
add esp, 0x10
test eax, eax
mov dword [esp + 0x20], eax
jne 0x7954ee
add ebx, 1
add ebp, 0x10
cmp ebx, dword [esp + 0x1c]
jl 0x7954a4
push 0
add esi, 0x3c
lea ecx, [esp + 0x94]
push esi
push ecx
call fcn.00798984
add esp, 0xc
lea edx, [esp + 0x90]
push edx
call fcn.00798a04
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call dword [fcn.008515a0]
lea ecx, [esp + 0x78]
push ecx
call fcn.00798a04
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret