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

Disassembly:
mov eax, 0x100ba9c2
call fcn.100b2f10
sub esp, 0x14c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
call fcn.10079409
mov eax, dword [esi + 0x80]
xor ebx, ebx
lea edi, [esi + 0x30]
push ebx
mov ecx, dword [eax]
push ebx
push dword [edi + 4]
push dword [edi]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x1007c308
push 0x8000
mov ecx, esi
call fcn.1000626c
test al, al
jne 0x1007bbdb
mov eax, 0x8007000e
jmp 0x1007c308
mov eax, dword [esi + 0x80]
and byte [ebp - 0x12], 0
cmp dword [esi + 0x2c], 0x6054b50
mov dword [esi + 0xc], eax
mov byte [ebp - 0x11], 1
jne 0x1007bc66
lea eax, [ebp - 0x118]
push 0x12
push eax
mov ecx, esi
call fcn.1007abd3
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x12c]
push eax
call fcn.1007a5e7
lea ecx, [ebp - 0x12c]
call fcn.1007a843
test al, al
je 0x1007bcb8
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
and byte [ebp - 0x11], 0
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x44]
add ecx, 4
push edi
adc edx, ebx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x80]
push ebx
push edx
push ecx
push dword [esi + 0x80]
mov byte [esi + 0x78], 1
mov eax, dword [eax]
call dword [eax + 0x10]
cmp eax, ebx
jne 0x1007c308
cmp byte [ebp - 0x11], 0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
je 0x1007bd90
lea ecx, [ebp - 0xf0]
call fcn.1007b13f
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1007af25
test al, al
jne 0x1007bcc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.1007920c
push 1
pop eax
jmp 0x1007c308
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov ecx, esi
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [esi + 0x78], 1
push dword [ebp + 8]
call fcn.1007b960
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1007bced
mov ecx, esi
call fcn.1007ac9f
mov dword [esi + 0x2c], eax
push 1
pop eax
cmp dword [ebp - 0x18], eax
je 0x1007bd81
cmp dword [ebp - 0x18], ebx
je 0x1007bd15
mov esi, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.1007920c
jmp 0x1007c026
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], ebx
jne 0x1007bd20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x1007bd81
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
sub eax, dword [esi + 0x38]
sbb ecx, dword [esi + 0x3c]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.1007c319
cmp eax, 0xffffffff
je 0x1007bd63
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ecx + eax*4]
lea ecx, [ebp - 0xf0]
call fcn.1007b189
test al, al
jne 0x1007bd6a
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
mov byte [esi + 0x68], 1
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x60], ecx
mov eax, dword [eax + 0x44]
mov dword [esi + 0x64], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.1007920c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
and byte [ebp - 0x11], 0
cmp dword [ebp - 0x18], 1
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
jne 0x1007bf1d
mov ecx, dword [ebp + 8]
call fcn.10079409
mov eax, dword [esi + 0x40]
and byte [esi + 0x28], 0
push edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x44]
push ebx
push dword [esi + 0x4c]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x80]
mov byte [ebp - 0x12], 1
push dword [esi + 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
je 0x1007be00
mov ebx, eax
jmp 0x1007c2fa
mov ecx, esi
call fcn.1007ac9f
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
call fcn.1007ba24
cmp eax, ebx
jne 0x1007bdeb
cmp dword [esi + 0x2c], 0x2014b50
je 0x1007be38
add dword [edi], 0xfffffffc
mov byte [esi + 0x7e], 1
adc dword [edi + 4], 0xffffffff
mov byte [esi + 0x7a], 1
jmp 0x1007c2fa
mov ecx, esi
mov byte [esi + 0x28], 1
call fcn.100062bb
mov eax, dword [edi]
lea ecx, [ebp - 0xf0]
sub eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
sbb eax, ebx
mov dword [ebp - 0x24], eax
call fcn.1007b13f
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.1007b404
cmp eax, ebx
jne 0x1007bec9
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x3c]
push eax
call fcn.1007c577
cmp dword [ebp + 0xc], ebx
je 0x1007be9c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, dword [eax + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
cmp eax, ebx
jne 0x1007bec9
mov ecx, esi
call fcn.1007ac9f
cmp eax, 0x2014b50
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
jne 0x1007bedf
call fcn.1007920c
lea ecx, [ebp - 0xf0]
call fcn.1007b13f
jmp 0x1007be5e
lea ecx, [ebp - 0xf0]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1007920c
jmp 0x1007c01a
call fcn.1007920c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub eax, dword [ebp - 0x28]
mov byte [ebp - 0x11], 1
sbb ecx, dword [ebp - 0x24]
sub eax, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
sbb ecx, ebx
cmp eax, ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], eax
je 0x1007bf1d
mov eax, dword [ebp - 0x3c]
mov byte [esi + 0x68], 1
mov eax, dword [eax]
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x60], ecx
mov eax, dword [eax + 0x44]
mov dword [esi + 0x64], eax
push 0x30
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
and byte [ebp + 0xf], 0
mov edi, dword [edi + 4]
add esp, 0xc
sub eax, 4
sbb edi, ebx
cmp dword [esi + 0x2c], 0x6064b50
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
jne 0x1007c034
mov ecx, esi
mov byte [ebp + 0xf], 1
mov byte [esi + 0x79], 1
call fcn.1007acb3
mov edi, eax
lea eax, [ebp - 0x158]
push 0x2c
push eax
mov ecx, esi
mov ebx, edx
call fcn.1007abd3
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x74]
push eax
call fcn.1007a620
sub edi, 0x2c
mov ecx, esi
sbb ebx, 0
push ebx
push edi
call fcn.1007ad17
mov ecx, esi
call fcn.1007ac9f
cmp dword [ebp - 0x70], 0
mov dword [esi + 0x2c], eax
jne 0x1007c02d
xor eax, eax
cmp dword [ebp - 0x6c], eax
jne 0x1007c02d
cmp byte [ebp - 0x11], al
je 0x1007bfd1
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
sub edi, edx
mov dword [ebp - 0x30], edx
sbb ebx, ecx
and byte [ebp - 0x11], al
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x20]
jne 0x1007c017
mov ecx, dword [ebp - 0x60]
cmp ecx, eax
jne 0x1007c017
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x20]
jne 0x1007c017
mov ecx, dword [ebp - 0x58]
cmp ecx, eax
jne 0x1007c017
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x44]
jne 0x1007c017
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x40]
jne 0x1007c017
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x4c], ecx
jne 0x1007c00f
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x48], ecx
je 0x1007c034
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], eax
je 0x1007c034
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.100793b8
mov eax, esi
jmp 0x1007c308
mov esi, 0x80004001
jmp 0x1007c01a
cmp dword [esi + 0x2c], 0x7064b50
jne 0x1007c082
cmp byte [ebp + 0xf], 0
jne 0x1007c04b
push 1
pop ebx
jmp 0x1007c2fa
mov ecx, esi
call fcn.1007ac9f
mov ecx, esi
call fcn.1007acb3
mov ecx, esi
mov edi, eax
mov ebx, edx
call fcn.1007ac9f
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
add eax, edi
adc ecx, ebx
cmp dword [ebp - 0x1c], eax
jne 0x1007c043
cmp dword [ebp - 0x18], ecx
jne 0x1007c043
mov ecx, esi
call fcn.1007ac9f
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x2c], 0x6054b50
jne 0x1007c043
lea eax, [ebp - 0x104]
push 0x12
push eax
mov ecx, esi
call fcn.1007abd3
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x88]
push eax
call fcn.1007a5e7
mov cl, byte [ebp + 0xf]
test cl, cl
je 0x1007c0bf
cmp word [ebp - 0x88], 0xffff
je 0x1007c0c9
movzx eax, word [ebp - 0x88]
mov dword [ebp - 0x70], eax
test cl, cl
je 0x1007c0d8
cmp word [ebp - 0x86], 0xffff
je 0x1007c0e2
movzx eax, word [ebp - 0x86]
mov dword [ebp - 0x6c], eax
test cl, cl
je 0x1007c0f1
cmp word [ebp - 0x84], 0xffff
je 0x1007c0ff
movzx eax, word [ebp - 0x84]
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
test cl, cl
je 0x1007c10e
cmp word [ebp - 0x82], 0xffff
je 0x1007c11c
movzx eax, word [ebp - 0x82]
cdq
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
test cl, cl
je 0x1007c126
cmp dword [ebp - 0x80], 0xffffffff
je 0x1007c130
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
test cl, cl
je 0x1007c13a
cmp dword [ebp - 0x7c], 0xffffffff
je 0x1007c144
mov eax, dword [ebp - 0x7c]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
cmp byte [ebp - 0x11], 0
je 0x1007c166
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x48]
sub eax, edi
mov dword [ebp - 0x30], edi
sbb ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov dword [ebp - 0x2c], edx
cmp byte [ebp - 0x12], 0
je 0x1007c1a1
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x44]
cmp edx, eax
jne 0x1007c180
cmp edi, ecx
je 0x1007c1a1
mov ebx, dword [ebp + 8]
sub eax, edx
sbb ecx, edi
xor edx, edx
cmp dword [ebx + 4], edx
mov edi, eax
jbe 0x1007c1a1
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
add dword [eax + 0x40], edi
adc dword [eax + 0x44], ecx
inc edx
cmp edx, dword [ebx + 4]
jb 0x1007c190
cmp dword [ebp - 0x38], 0
je 0x1007c272
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x38], 0
jbe 0x1007c272
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov edi, dword [eax + ecx*4]
mov ecx, dword [ebp + 8]
push dword [edi + 0x44]
push dword [edi + 0x40]
call fcn.1007c319
cmp eax, 0xffffffff
jne 0x1007c1e3
mov ecx, dword [ebp + 8]
push edi
call fcn.1007c577
jmp 0x1007c263
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x20]
mov ecx, dword [ecx]
mov ebx, dword [ecx + eax*4]
lea ecx, [ebx + 0x20]
call fcn.1005ff9a
test al, al
jne 0x1007c263
mov eax, dword [ebx + 0x10]
cmp eax, dword [edi + 0x10]
jne 0x1007c263
mov eax, dword [ebx + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x1007c263
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 8]
jne 0x1007c263
mov eax, dword [ebx + 0xc]
cmp eax, dword [edi + 0xc]
jne 0x1007c263
mov edx, edi
mov ecx, ebx
call fcn.1007b1e5
test al, al
je 0x1007c263
mov eax, dword [ebx + 0x1c]
cmp eax, dword [edi + 0x1c]
jne 0x1007c263
mov ax, word [edi + 0x38]
lea ecx, [ebx + 0x48]
mov word [ebx + 0x38], ax
lea eax, [edi + 0x48]
push eax
call fcn.1007c48c
mov ax, word [edi + 0x3a]
lea ecx, [ebx + 0x54]
mov word [ebx + 0x3a], ax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
lea eax, [edi + 0x54]
push eax
call fcn.100286c1
mov al, byte [edi + 0x5d]
mov byte [ebx + 0x5d], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jb 0x1007c1b9
xor ebx, ebx
cmp dword [ebp - 0x70], ebx
jne 0x1007c2f5
cmp dword [ebp - 0x6c], ebx
jne 0x1007c2f5
cmp byte [ebp + 0xf], bl
je 0x1007c295
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax + 4]
cmp dword [ebp - 0x64], eax
jne 0x1007c2a7
cmp dword [ebp - 0x60], ecx
jmp 0x1007c2a5
mov eax, dword [ebp - 0x64]
cmp ax, word [ebp - 0x20]
jne 0x1007c2a7
mov ecx, dword [ebp + 8]
cmp ax, word [ecx + 4]
je 0x1007c2ab
mov byte [esi + 0x7a], 1
movzx eax, word [ebp - 0x78]
push eax
lea eax, [esi + 0x6c]
push eax
mov ecx, esi
call fcn.1007ac4a
and byte [esi + 0x28], 0
mov ecx, esi
call fcn.100062aa
mov ax, word [ebp - 0x20]
cmp word [ebp - 0x5c], ax
jne 0x1007be2f
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x44]
jne 0x1007be2f
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
je 0x1007c2fa
mov eax, dword [ebp + 8]
cmp dword [eax + 4], ebx
je 0x1007c2fa
jmp 0x1007be2f
mov ebx, 0x80004001
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.100793b8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8