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

Disassembly:
sub esp, 0x198
push ebx
push ebp
mov ebp, dword [esp + 0x1a8]
push esi
mov esi, dword [ebp + 0x1d4]
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1b4]
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x124], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 1
call fcn.00773902
mov ecx, dword [ebp]
mov edi, eax
mov dword [esp + 0x34], edi
mov edx, dword [ecx + 0x90]
xor eax, eax
xor ecx, ecx
add esp, 4
cmp dword [ebp + 0x130], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], ecx
jne 0x774852
cmp byte [ebp + 0x141], cl
jne 0x774852
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1ac]
lea edx, [esp + 0x38]
push edx
push edi
push eax
push ecx
call fcn.00773a42
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add esp, 0x10
mov dword [esp + 0x58], eax
cmp eax, ebx
mov dword [ebp + 0x1d8], ebx
mov dword [ebp + 0x1dc], ecx
mov dword [ebp + 0x1e0], eax
mov dword [ebp + 0x1e4], 0x40f5b0
je 0x774895
push 0x10
push ecx
mov dword [esp + 0x44], ecx
call fcn.008415b2
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x1d8], eax
je 0x774bd5
mov ecx, dword [esp + 0x38]
jmp 0x7748a3
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c0]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1bc]
add ecx, edx
cmp eax, ebx
mov dword [esp + 0x2c], ecx
je 0x7748ce
cmp dword [eax], ebx
je 0x7748ce
push 0x75d20c
jmp 0x7748d3
push 0x75d680
call dword [fcn.005df108]
mov ecx, dword [ebp]
mov edx, dword [ecx]
call dword [edx + 0x30]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x7748ef
dec eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], ebx
je 0x774910
mov eax, dword [esp + 0x30]
push 0x10
push eax
call fcn.008415b2
add esp, 8
cmp eax, ebx
mov dword [esp + 0x64], eax
je 0x774be8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1ac]
imul eax, eax, 0xf
cmp eax, 0x7ff8
mov ecx, dword [ecx + 0x994]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x7ff8
jb 0x77493b
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x18]
jb 0x7749ce
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
xor edx, edx
lea ecx, [edi + 4]
div ecx
mov edx, dword [esp + 0x14]
inc edx
mov ebx, edx
cmp edx, eax
jb 0x774961
mov ebx, eax
imul ecx, ebx
push 0
push ecx
mov dword [esp + 0x48], ebx
call fcn.008415b2
mov esi, eax
add esp, 8
test esi, esi
je 0x774994
lea eax, [ebx*4]
sub eax, edi
add eax, esi
test ebx, ebx
mov ecx, esi
je 0x774994
add eax, edi
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x77498a
test esi, esi
mov dword [esp + 0x24], esi
jne 0x7749c0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, eax
shr eax, 2
lea eax, [eax + eax*2]
cmp eax, edx
mov dword [esp + 0x10], eax
jae 0x774945
mov eax, edx
cmp ecx, eax
jbe 0x7749ca
mov dword [esp + 0x10], eax
jmp 0x774945
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
jae 0x7749f0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x1ac]
mov ecx, dword [eax + 0x994]
push ecx
push 0x66
push 0x40d
call fcn.00844652
add esp, 0xc
jmp 0x774bd5
push 0x10
push 0x10000
push 0x5e1a24
push 0x75d258
call fcn.00846562
add esp, 4
push eax
lea edx, [esp + 0x78]
push edx
call fcn.008462f2
add esp, 0x14
test al, al
jne 0x774bd1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1b4]
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1b8]
push 0
lea eax, [eax + eax*2]
mov dword [esp + 0x54], ecx
lea ecx, [ecx + eax*8]
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c8]
push esi
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x64], ebp
call fcn.007743a2
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x774bd1
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x84]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
sub ecx, ebp
xor edx, edx
mov ebp, ecx
add ebp, ebx
adc edx, edi
shrd ebp, edx, 5
shr edx, 5
test ebp, ebp
jne 0x774abf
mov eax, dword [esp + 0x14]
push eax
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.00773292
add esp, 4
jmp 0x774bb7
mov eax, ebp
lea ebx, [esp + 0x68]
call fcn.007730e2
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x774bd1
mov ecx, ebx
push ecx
call fcn.008463e2
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x18]
add esp, 4
test eax, eax
jne 0x774b19
push 0x10
push 0x8000
push 0x5e1a24
push 0x75d258
call fcn.00846562
add esp, 4
push eax
push ebx
call fcn.008462f2
add esp, 0x14
test al, al
jne 0x774bd1
push 0
push 0
push 0
push 0
push 1
push ebx
call fcn.00846182
mov ecx, dword [esp + 0x44]
lea eax, [ecx + 4]
imul eax, dword [esp + 0x58]
xor edx, edx
div ecx
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x2c]
push eax
push edi
push esi
dec ebp
push ecx
mov dword [esp + 0x3c], ebp
call fcn.007741b2
add esp, 0x2c
test eax, eax
jne 0x774bd1
lea edx, [esp + 0x108]
push 1
push edx
call fcn.00845852
add esp, 8
test eax, eax
jne 0x774bd1
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00846182
add esp, 0x18
test al, al
jne 0x774bd1
mov ecx, dword [esp + 0x10]
push 1
shl ecx, 5
add ecx, edi
push ecx
push edi
push edi
push esi
push ebx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.007733c2
add esp, 0x20
test eax, eax
jne 0x774bd1
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], eax
jbe 0x774bc9
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
xor ebx, ebx
cmp eax, ebx
je 0x774be8
push eax
call fcn.00841642
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00841642
mov edx, dword [esp + 0x2c]
push edx
call fcn.00841642
lea eax, [esp + 0x110]
push eax
call fcn.008463e2
lea ecx, [esp + 0x74]
push ecx
call fcn.008463e2
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, ebx
je 0x774c5e
push 1
push esi
call fcn.00845852
add esp, 8
test eax, eax
je 0x774c34
mov dword [esp + 0x20], 1
mov edi, dword [esi]
mov ebx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.00846182
add esp, 0x18
test al, al
je 0x774c58
mov dword [esp + 0x20], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov esi, dword [esp + 0x20]
test esi, esi
je 0x774c77
push 0x66
push 0x404
call fcn.00844652
add esp, 8
jmp 0x774c87
mov edx, dword [esp + 0x14]
push edx
push 0x75d50c
call dword [0x5df104]
mov eax, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x48]
pop edi
test esi, esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
je 0x774ca6
or eax, 0xffffffff
add esp, 0x198
ret
mov eax, dword [esp + 4]
add esp, 0x198
ret