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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push edi
lea edi, [ebp - 0x78]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jbe 0xa1ba48
mov eax, dword [ebp - 0x14]
add eax, 3
and al, 0xfc
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.009cb56c
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
cmp dword [ebp - 0x24], 0
je 0xa1ba3f
jmp 0xa1beae
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 2]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jbe 0xa1baac
mov eax, dword [ebp - 0x14]
add eax, 9
and al, 0xf8
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x28
mov eax, dword [ebp - 0x1c]
push eax
call fcn.009cb56c
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
cmp dword [ebp - 0x24], 0
je 0xa1baa3
jmp 0xa1beae
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 2]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 2
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], 0xffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.009c85d9
add esp, 4
cmp eax, 1
jne 0xa1bafe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 0xfffffffe
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x74], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0xa1bb4d
jmp 0xa1beae
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
movsx edx, word [ecx]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
jmp 0xa1bbba
mov eax, dword [ebp - 0x2c]
add eax, 0x28
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 8
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jae 0xa1bcc6
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov ax, word [edx]
mov word [ecx + 0xc], ax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 4]
mov word [ecx + 0xe], ax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
call fcn.009c0f60
add esp, 8
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
push ecx
call fcn.009c0f60
add esp, 8
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x14]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x3c]
movsx ecx, byte [eax]
and ecx, 3
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
je 0xa1bc4a
cmp dword [ebp - 0x78], 2
je 0xa1bc54
jmp 0xa1bc5e
mov edx, dword [ebp - 0x2c]
mov word [edx], 1
jmp 0xa1bc66
mov eax, dword [ebp - 0x2c]
mov word [eax], 2
jmp 0xa1bc66
mov ecx, dword [ebp - 0x2c]
mov word [ecx], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x34]
jne 0xa1bcc1
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
cmp dword [ebp - 0x40], ecx
jge 0xa1bcc1
mov edx, dword [ebp - 0x2c]
add edx, 0x28
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x40]
movsx eax, word [ecx + edx*2]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], edx
jmp 0xa1bb9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x48], 0
jmp 0xa1bd01
mov edx, dword [ebp - 0x54]
add edx, 4
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x50]
jae 0xa1bd29
movsx edx, word [ebp - 0x48]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x10]
add eax, edx
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov edx, dword [ebp - 0x4c]
movsx eax, word [edx]
add eax, 1
mov word [ebp - 0x48], ax
jmp 0xa1bcef
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
jmp 0xa1bd5c
mov eax, dword [ebp - 0x2c]
add eax, 0x28
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
jae 0xa1be9c
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x58]
jne 0xa1bdbb
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x58]
movsx eax, word [edx + 0xc]
mov ecx, dword [ebp - 0x68]
movsx edx, word [ecx + 0xc]
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
movsx ecx, word [eax + 0xe]
mov edx, dword [ebp - 0x68]
movsx eax, word [edx + 0xe]
sub ecx, eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00a1bec0
add esp, 8
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
add eax, 0x28
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x64]
mov byte [ecx + 2], dl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
movsx eax, word [edx + 0xc]
mov ecx, dword [ebp - 0x2c]
movsx edx, word [ecx + 0xc]
sub eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
movsx ecx, word [eax + 0xe]
mov edx, dword [ebp - 0x2c]
movsx eax, word [edx + 0xe]
sub ecx, eax
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00a1bec0
add esp, 8
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x64]
mov byte [eax + 3], cl
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ax, word [edx]
and eax, 3
test eax, eax
je 0xa1be2f
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
or dh, 1
mov eax, dword [ebp - 0x2c]
mov word [eax], dx
jmp 0xa1be85
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx + 3]
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 2]
cmp edx, ecx
jne 0xa1be6f
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx + 3]
cmp eax, 4
je 0xa1be4f
jmp 0xa1be1e
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.009c130f
add esp, 0x10
test eax, eax
je 0xa1be6d
jmp 0xa1be1e
jmp 0xa1be85
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx + 2]
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx + 3]
neg edx
cmp eax, edx
jne 0xa1be85
jmp 0xa1be1e
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], edx
jmp 0xa1bd53
xor eax, eax
test eax, eax
je 0xa1beae
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a1bf95
add esp, 4
mov eax, dword [ebp - 0x24]
pop edi
add esp, 0x78
cmp ebp, esp
call fcn.00a334d7
mov esp, ebp
pop ebp
ret