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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x68]
mov byte [eax], 1
push ebx
mov ebx, dword [0x9b38c0]
push ebp
mov ebp, ecx
movsx eax, byte [ebp + 0x8c]
xor edx, edx
mov dx, word [ebp + 0x8e]
mov ecx, dword [0x9b38b4]
push esi
movsx esi, dx
imul esi, esi, 0x16
add esi, ebx
movzx eax, word [esi + eax*2]
shl eax, 5
push edi
mov edi, dword [0x9b38bc]
add eax, edi
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x78], 3
mov dword [esp + 0x30], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], ecx
jne 0x77454b
mov ecx, dword [ebp + 0x2e4]
test ecx, ecx
je 0x774531
xor eax, eax
cmp dword [ebp + 0x2e0], eax
jle 0x7744c7
movsx edx, dx
lea ecx, [ecx]
movzx ebp, word [ecx]
cmp edx, ebp
mov ebp, dword [esp + 0x30]
je 0x7744c7
inc eax
add ecx, 2
cmp eax, dword [ebp + 0x2e0]
jl 0x7744b0
mov ecx, dword [ebp + 0x2e0]
inc eax
cmp eax, ecx
jge 0x774528
mov ecx, dword [ebp + 0x2e4]
movzx edx, word [ecx + eax*2]
mov eax, edx
imul eax, eax, 0x16
movzx ecx, word [eax + ebx]
add eax, ebx
movzx eax, word [eax + 2]
shl eax, 5
shl ecx, 5
add eax, edi
add ecx, edi
mov edi, dword [esp + 0x24]
cmp edi, ecx
mov dword [esp + 0x4c], eax
sete al
test al, al
jne 0x77451c
cmp edi, dword [esp + 0x4c]
je 0x77451c
mov eax, dword [esp + 0x74]
xor byte [eax], 1
mov ecx, dword [esp + 0x78]
mov byte [ecx], 0
jmp 0x77454b
mov ecx, dword [esp + 0x74]
mov byte [ecx], al
mov dword [esp + 0x14], edx
jmp 0x77454b
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], 1
cmp dword [ebp + 0x7c], 3
jne 0x774544
pop edi
pop esi
pop ebp
mov ax, dx
pop ebx
add esp, 0x58
ret 0x10
mov dword [ebp + 0x78], 2
cmp dword [ebp + 0x78], 2
jne 0x774961
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x6c], edx
call fcn.0040fe20
mov edi, dword [esp + 0x2c]
xor edx, edx
mov dx, word [ebp + 0x8e]
push edx
push edi
call fcn.00766680
mov cl, byte [edi + 0x10]
add esp, 0x10
cmp cl, 1
jbe 0x77494d
xor ebx, ebx
cmp eax, ebx
jne 0x7745f5
test byte [esi + 0xa], 1
jne 0x77494d
mov ecx, ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call fcn.0076fde0
cmp al, 0xff
je 0x7745d1
mov edx, 1
mov cl, al
shl edx, cl
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edx
mov al, byte [0x9b3900]
test al, al
mov dword [esp + 0x30], 0x40000000
je 0x77461c
push 0x3f800000
call fcn.0045da70
fstp dword [esp + 0x40]
add esp, 4
jmp 0x774624
mov cx, word [eax + 8]
movzx edx, word [eax]
mov eax, dword [esp + 0x74]
mov word [esp + 0x14], cx
mov ecx, dword [0x9b38bc]
shl edx, 5
add edx, ecx
cmp edi, edx
sete cl
mov byte [eax], cl
jmp 0x774965
mov dword [esp + 0x3c], 0x3f800000
mov al, byte [edi + 0x10]
test al, al
mov dword [esp + 0x40], ebx
jbe 0x77492f
lea edx, [edi + 0x12]
mov dword [esp + 0x20], edx
jmp 0x774640
xor ebx, ebx
mov edi, edi
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
movsx ecx, word [ebp + 0x8e]
cmp eax, ecx
je 0x77490b
mov esi, dword [0x9b38c0]
imul eax, eax, 0x16
mov ecx, dword [ebp + 0x7c]
add eax, esi
cmp ecx, ebx
je 0x774672
cmp ecx, 5
mov byte [esp + 0x12], 1
jne 0x774677
mov byte [esp + 0x12], 0
cmp ecx, 2
je 0x774693
cmp ecx, 4
je 0x774693
cmp ecx, 3
je 0x774693
cmp ecx, 6
je 0x774693
xor dl, dl
mov byte [esp + 0x6c], dl
jmp 0x77469c
mov byte [esp + 0x6c], 1
mov dl, byte [esp + 0x6c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0x42c80000
mov dword [esp + 0x2c], edi
mov esi, eax
mov dword [esp + 0x1c], ebx
jmp 0x7746c0
mov dl, byte [esp + 0x6c]
lea esp, [esp]
mov al, byte [esp + 0x12]
test al, al
jne 0x7746cc
test dl, dl
je 0x7746ed
xor ecx, ecx
mov cx, word [esi + 0xa]
mov eax, ecx
shr eax, 0xc
and al, 1
test dl, dl
je 0x7746e5
shr ecx, 0xd
and cl, 1
or al, cl
test al, al
jne 0x77490b
movzx edx, word [esi]
mov edi, dword [0x9b38bc]
mov ecx, dword [esp + 0x2c]
mov al, byte [ebp + 0x51]
shl edx, 5
add edx, edi
cmp ecx, edx
sete bl
test al, al
je 0x77472c
xor eax, eax
mov ax, word [esi + 0xa]
mov ecx, eax
shr ecx, 0xf
test cl, 1
je 0x77490b
shr al, 2
and al, 1
xor al, bl
jne 0x77490b
mov al, byte [ebp + 0x52]
test al, al
je 0x774743
mov dl, byte [esi + 0xa]
shr dl, 1
not dl
test dl, 1
je 0x77490b
mov al, byte [ebp + 0x53]
test al, al
je 0x774762
mov ax, word [esi + 0xa]
mov cl, al
shr cl, 5
shr al, 1
not cl
xor cl, al
test cl, 1
je 0x77490b
mov dl, byte [esi + 0xa]
shr dl, 7
test dl, 1
je 0x774798
movsx eax, word [esi + 6]
mov ecx, dword [0x9b38c8]
lea eax, [ecx + eax*8]
lea edx, [esp + 0x34]
push edx
movzx edx, byte [eax + 4]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, ebp
call fcn.0076ff00
test al, al
je 0x77490b
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x50]
push eax
push esi
mov ecx, edi
call fcn.0076dda0
test bl, bl
jne 0x7747cb
fld dword [esp + 0x50]
fchs
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fchs
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fchs
fstp dword [esp + 0x58]
lea ecx, [esp + 0x50]
push ecx
mov edx, ecx
push edx
call fcn.0040fe20
fld dword [esp + 0x68]
fmul dword [esp + 0x5c]
add esp, 8
fld dword [esp + 0x5c]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x58]
faddp st(1)
fsub dword [esp + 0x3c]
fabs
fcom dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x77480e
fstp dword [esp + 0x18]
jmp 0x774810
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x77490b
movzx eax, word [esi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
test eax, eax
fild dword [esp + 0x48]
fmul dword [0x9b3a14]
fsubr dword [esp + 0x28]
fstp dword [esp + 0x28]
jle 0x774856
fld dword [esp + 0x28]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
jnp 0x7748bb
mov ecx, dword [esp + 0x2c]
push ecx
push esi
mov ecx, edi
call fcn.00765730
xor edx, edx
mov dx, word [esi + 8]
mov edi, eax
push edx
push edi
call fcn.00766680
add esp, 8
test eax, eax
je 0x7748b3
movzx ecx, word [eax]
mov ebx, dword [0x9b38bc]
shl ecx, 5
add ecx, ebx
cmp edi, ecx
je 0x774891
test byte [eax + 0xa], 0x40
jne 0x77490b
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x7748bb
mov esi, eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x14
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], eax
jl 0x7746b8
jmp 0x7748bb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x77490b
test esi, esi
je 0x77490b
fld dword [esp + 0x30]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x77490b
mov eax, dword [esp + 0x20]
movsx eax, word [eax]
mov edx, dword [esp + 0x18]
movsx ecx, ax
imul ecx, ecx, 0x16
mov dword [esp + 0x30], edx
mov edx, dword [0x9b38c0]
mov dword [esp + 0x14], eax
movzx eax, word [ecx + edx]
mov edx, dword [0x9b38bc]
mov ecx, dword [esp + 0x24]
shl eax, 5
add eax, edx
mov edx, dword [esp + 0x74]
cmp ecx, eax
sete cl
mov byte [edx], cl
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
movzx ecx, byte [edi + 0x10]
inc eax
add esi, 2
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], esi
jl 0x77463c
mov dx, word [esp + 0x14]
cmp dx, word [ebp + 0x8e]
mov eax, dword [esp + 0x74]
jne 0x774965
xor byte [eax], 1
mov ecx, dword [esp + 0x78]
mov byte [ecx], 0
jmp 0x774965
mov eax, dword [esp + 0x74]
mov cl, byte [eax]
mov edx, dword [esp + 0x78]
xor cl, 1
mov byte [eax], cl
mov byte [edx], 0
jmp 0x774965
mov eax, dword [esp + 0x74]
movsx eax, byte [eax]
movsx ecx, word [esp + 0x14]
mov edx, dword [ebp + 0x2c4]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0076e340
mov eax, dword [esp + 0x70]
pop edi
pop esi
fstp dword [eax]
mov ax, word [esp + 0xc]
pop ebp
pop ebx
add esp, 0x58
ret 0x10