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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10169ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
cmp dword [ebp + 8], 1
mov ebx, ecx
jne 0x10077979
mov eax, 0x80040570
jmp 0x10077e9e
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
jne 0x1007798d
mov eax, 0x80040573
jmp 0x10077e9e
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x218]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x21c]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x220]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0x224]
mov dword [esp + 0x5c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x50]
push eax
call edx
test eax, eax
js 0x10077e9e
mov eax, dword [ebx + 0x2c]
lea esi, [ebx + 0x2c]
test eax, eax
je 0x100779e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
mov dword [esi], 0
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
call edx
mov edi, eax
test edi, edi
jns 0x10077a12
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, edi
jmp 0x10077e9e
mov esi, dword [esi]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x34]
push ecx
push esi
call edx
xor edi, edi
xor esi, esi
mov dword [esp + 0x28], esi
cmp dword [esp + 0x34], edi
jle 0x10077df9
mov dword [esp + 0x70], edi
mov eax, dword [ebx + 0x2c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x48]
cmp eax, 6
jne 0x10077a6e
mov dword [ebx + 0x30], esi
jmp 0x10077dce
cmp eax, 0xb
jne 0x10077a7e
mov dword [ebx + 0xa8], esi
jmp 0x10077dce
cmp eax, 7
jne 0x10077cdc
mov dword [ebx + 0x34], esi
mov byte [ebx + 0x3c], 1
mov dword [esp + 0x1c], edi
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.10009f80
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x30]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
js 0x10077e6c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10077b81
mov ecx, dword [eax]
lea edx, [ebx + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edi, eax
test edi, edi
js 0x10077e5f
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
lea esi, [ebx + 0x98]
mov dword [esp + 0x18], eax
call fcn.10009f80
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x1c]
push eax
push ecx
call edx
mov edi, eax
test edi, edi
js 0x10077e5f
mov ecx, dword [ebx + 8]
mov esi, dword [esi]
lea eax, [ebx + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.1008b230
mov edi, eax
xor esi, esi
add esp, 8
cmp edi, esi
jl 0x10077e5f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push ecx
push eax
call edx
cmp word [esp + 0x3c], si
lea edx, [esp + 0x38]
setne al
mov byte [ebx + 0x68], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
cmp word [esp + 0x38], si
lea esi, [esp + 0x1c]
setne cl
mov byte [ebx + 0x80], cl
mov byte [esp + 0x70], 0
call fcn.1000a090
jmp 0x10077dc8
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
lea eax, [ebx + 0x40]
push eax
mov eax, dword [edx + 0x28]
call eax
mov edi, eax
test edi, edi
js 0x10077e5f
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
lea eax, [ebx + 0x44]
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edi, eax
test edi, edi
js 0x10077e5f
lea esi, [ebx + 0x98]
call fcn.10009f80
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call fcn.1008bc90
mov edi, eax
add esp, 0xc
test edi, edi
js 0x10077e5f
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
lea esi, [ebx + 0x68]
push esi
call edx
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
lea eax, [ebx + 0x80]
push eax
mov eax, dword [edx + 0x3c]
call eax
lea edi, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.1000a320
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x40]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
movzx edx, byte [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
neg edx
sbb edx, edx
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
movzx edx, byte [ebx + 0x80]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
neg edx
sbb edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebx + 0x98]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x38]
push ecx
call eax
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10077c9b
push ecx
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], esp
test eax, eax
je 0x10077c8e
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x1c]
call fcn.1008ae70
mov eax, dword [esp + 0x18]
mov byte [esp + 0x70], 3
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x6c]
call eax
lea esi, [esp + 0x18]
mov byte [esp + 0x70], 2
call fcn.1000a090
lea esi, [esp + 0x20]
mov byte [esp + 0x70], 1
call fcn.1000a090
lea esi, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.1000a090
jmp 0x10077dc8
cmp eax, 9
jne 0x10077dce
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x9c], esi
mov edi, dword [eax]
lea esi, [ebx + 0xa0]
mov dword [esp + 0x18], eax
call fcn.1000aa40
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0xc]
push eax
push ecx
call edx
mov dword [esp + 0x24], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 4
call fcn.1005a9c0
mov byte [esp + 0x70], 5
mov eax, dword [eax]
mov edi, dword [eax]
lea esi, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.10009f80
mov ecx, dword [edi + 0x48]
push eax
mov eax, dword [esp + 0x1c]
push eax
call ecx
lea esi, [esp + 0x40]
mov byte [esp + 0x70], 4
call fcn.1000a090
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
cmp word [esp + 0x30], 0
je 0x10077d79
mov dword [ebx + 0xa4], 1
jmp 0x10077dba
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
call fcn.100498c0
mov byte [esp + 0x70], 6
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
lea esi, [esp + 0x44]
mov byte [esp + 0x70], 4
call fcn.1000a090
movsx ecx, word [esp + 0x2c]
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [ebx + 0xa4], ecx
lea esi, [esp + 0x24]
mov byte [esp + 0x70], 0
call fcn.1000a090
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10077dea
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], edi
inc esi
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x34]
jl 0x10077a33
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [ebx + 0x48]
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x10077e8f
cmp byte [ebx + 0x68], 0
je 0x10077e31
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [ebx + 0x78]
push edx
lea edx, [ebx + 0x70]
push edx
call eax
mov esi, eax
cmp esi, edi
jl 0x10077e8f
cmp byte [ebx + 0x80], 0
je 0x10077e5b
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [ebx + 0x90]
push eax
lea eax, [ebx + 0x88]
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x10077e8f
xor eax, eax
jmp 0x10077e9e
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.1000a090
lea esi, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.1000a090
mov eax, edi
jmp 0x10077e9e
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4