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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0xbd33e0]
mov ebx, ecx
mov esi, 1
xor eax, ebp
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x54], edx
movzx ecx, byte [ecx + 0x2c]
cmp ecx, 2
setne al
lea eax, [eax + eax*4 + 5]
cmovae esi, eax
mov eax, dword [ebx]
test dx, dx
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov dword [esp + 0x44], eax
je 0x81d3b5
mov eax, dword [ebx + 8]
test eax, eax
je 0x81d3b5
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
lea eax, [ecx*4 + 0x20]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
lea edi, [ecx + ecx]
mov ecx, dword [esp + 0x44]
imul eax, edi
lea edx, [eax + esi*2]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.007995d0
add esp, 4
test eax, eax
je 0x81dcb3
mov ecx, eax
lea eax, [esi + esi]
mov esi, dword [esp + 0x38]
mov edx, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x2c], ecx
shl esi, 5
add edx, esi
mov dword [ecx + esi + 0x1c], 0
mov dword [ecx + esi + 0x18], 0
mov dword [ecx + esi + 0x14], 0
mov dword [ecx + esi + 0x10], 0
mov dword [ecx + esi + 0xc], 0
mov dword [ecx + esi + 8], 0
mov dword [ecx + esi + 4], 0
mov dword [ecx + esi], 0
mov dword [esp + 0x10], edx
lea eax, [edx + esi]
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
add ecx, 0x20
dec edi
lea eax, [eax + edx*4]
jg 0x81d44d
cmp dword [esp + 0x1c], 0
jne 0x81d46a
mov dword [esp + 0x48], 0
jmp 0x81d47d
push dword [esp + 4]
push 0
mov dword [esp + 0x50], eax
push eax
call fcn.0098a5f0
add esp, 0xc
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x2c]
mov ecx, 0x30
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x84]
cmp eax, 0x30
cmovb ecx, eax
mov word [edi + esi + 0x10], cx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x81d4b6
xor eax, eax
cmp dl, 1
sbb al, al
not al
or al, cl
mov byte [edi + esi + 0x16], al
test dl, dl
je 0x81dae5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], ebx
test edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
jg 0x81d50c
mov esi, dword [esp + 4]
mov dword [esp + 0xc], 0
jmp 0x81d86e
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 4]
mov dword [esp + 0x58], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x68], edi
lea eax, [eax*4]
mov dword [esp + 0x64], eax
mov edi, dword [ebx + 0x3c]
test edi, edi
je 0x81d852
mov dword [esp + 8], ecx
mov dl, byte [ecx + 0x16]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 4], esi
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov eax, esi
mov ecx, ebx
not eax
not ecx
and ecx, dword [edi + 4]
and eax, dword [edi]
or eax, ecx
je 0x81d57e
mov esi, dword [esp + 4]
jmp 0x81d843
mov byte [esp + 0x20], dl
mov edx, esi
mov esi, ebx
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x28], ecx
and ecx, edx
and eax, esi
or ecx, eax
jne 0x81d575
mov ecx, dword [esp + 8]
mov dword [esp + 0x5c], edx
test dword [edi + 0x24], 0x4000
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], ebx
movzx edx, word [ecx + 0x10]
je 0x81d5c6
cmp dx, 3
jge 0x81d5c6
mov esi, dword [esp + 4]
jmp 0x81d847
movzx eax, word [edi + 0x14]
mov esi, ecx
movsx ecx, word [edi + 0x12]
mov word [esp + 0x1a], dx
add ax, dx
movsx edx, ax
call fcn.0081c060
movsx edx, word [esi + 0x14]
movsx ecx, ax
call fcn.0081c060
movzx ecx, word [esp + 0x1a]
mov dword [esp + 0x24], eax
add cx, word [edi + 0x16]
cmp byte [esp + 0x20], 0
mov word [esp + 0x1a], cx
jns 0x81d632
mov ecx, dword [esp + 0x4c]
movzx eax, word [esp + 0x30]
movzx ebx, word [ecx + 0x28]
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x88]
push eax
push edi
push dword [esp + 0x28]
push ebx
push esi
call fcn.008274f0
add esp, 0x14
jmp 0x81d64a
mov al, byte [esp + 0x20]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x5c]
test al, al
mov byte [esp + 0x20], al
js 0x81d6a8
movsx ecx, al
cmp ebx, ecx
jle 0x81d6a8
mov eax, dword [esp + 0x48]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x81d692
mov ebx, ecx
movsx edx, word [esp + 0x54]
mov ecx, dword [esp + 0x4c]
push ebx
push dword [esp + 0x20]
call fcn.00827d10
add esp, 8
mov ecx, dword [esp + 0x48]
mov word [ecx + ebx*2], ax
movsx ecx, word [esp + 0x24]
movsx edx, ax
call fcn.0081c060
mov edx, dword [esp + 0xc]
add eax, 5
jmp 0x81d6b5
mov ecx, dword [esp + 0x24]
mov eax, ecx
add ecx, 0xfffffffe
mov dword [esp + 0x24], ecx
test edx, edx
jle 0x81d6f2
mov ecx, dword [esp + 0x6c]
or dword [esp + 0x28], esi
mov esi, dword [esp + 0x34]
or dword [esp + 0x60], ecx
xor ecx, ecx
mov edx, dword [esi]
mov ebx, dword [esi + 4]
xor edx, dword [esp + 0x28]
xor ebx, dword [esp + 0x60]
or ebx, edx
jne 0x81d6e6
movzx edx, byte [esi + 0x16]
xor dl, byte [esp + 0x20]
jns 0x81d73d
mov edx, dword [esp + 0xc]
inc ecx
add esi, 0x20
cmp ecx, edx
jl 0x81d6cb
mov esi, dword [esp + 0x38]
cmp edx, esi
jl 0x81d71c
mov edx, esi
mov esi, dword [esp + 4]
cmp ax, si
jg 0x81d843
mov esi, edx
jne 0x81d71c
mov edx, dword [esp + 0x24]
cmp dx, word [esp + 0x40]
jge 0x81d575
mov edx, dword [esp + 0xc]
xor ecx, ecx
cmp edx, esi
mov esi, dword [esp + 0x3c]
setl cl
cmovl esi, edx
add edx, ecx
shl esi, 5
mov dword [esp + 0xc], edx
add esi, dword [esp + 0x34]
jmp 0x81d771
cmp word [esi + 0x12], ax
jl 0x81d575
jne 0x81d771
movzx ecx, word [esp + 0x1a]
cmp word [esi + 0x10], cx
mov ecx, dword [esp + 8]
jge 0x81d761
mov esi, dword [esp + 4]
jmp 0x81d847
jne 0x81d771
mov ecx, dword [esp + 0x24]
cmp word [esi + 0x14], cx
jle 0x81d575
mov ecx, dword [edi + 8]
mov ebx, dword [esp + 8]
mov edx, dword [edi + 0xc]
or ecx, dword [ebx]
or edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov dword [esi + 0xc], edx
movzx edx, word [esp + 0x1a]
mov dword [esi + 8], ecx
mov word [esi + 0x10], dx
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x24]
mov word [esi + 0x14], ax
mov al, byte [esp + 0x20]
mov byte [esi + 0x16], al
push dword [esp + 0x64]
push dword [ebx + 0x18]
push dword [esi + 0x18]
call fcn.0098a270
add esp, 0xc
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jl 0x81d575
mov eax, ecx
cmp ecx, 2
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], 0
movzx eax, word [ecx + 0x10]
movzx esi, word [ecx + 0x12]
mov dword [esp + 0x40], eax
mov eax, 1
jae 0x81d80f
mov dword [esp + 0x3c], 0
jmp 0x81d843
movzx edx, word [ecx + 0x32]
cmp dx, si
jle 0x81d81e
movzx esi, word [ecx + 0x34]
jmp 0x81d82d
mov ebx, esi
jne 0x81d837
movzx esi, word [ecx + 0x34]
cmp si, word [esp + 0x40]
jle 0x81d837
mov ebx, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
inc eax
add ecx, 0x20
mov esi, ebx
cmp eax, dword [esp + 0x38]
jne 0x81d80f
mov ecx, dword [esp + 8]
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x81d542
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x4c]
add ecx, 0x20
inc eax
cmp eax, edi
mov dword [esp + 0x58], eax
jne 0x81d533
mov eax, dword [esp + 0x30]
mov dword [esp + 4], esi
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov ecx, eax
mov edi, esi
inc ecx
mov eax, ecx
cmp ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, edx
jne 0x81d4ef
test esi, esi
je 0x81d8ad
cmp esi, 1
jg 0x81da82
mov esi, edx
jmp 0x81daaa
mov edx, fcn.007a2600
mov eax, fcn.007a2600
movzx esi, byte [0xbb9e07]
mov edi, dword [esp + 0x2c]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x81da66
mov al, byte [0xbb9e07]
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9e07], ah
jne 0x81d8eb
mov ecx, fcn.007a2600
mov edx, fcn.007a2600
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x81d96a
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbb9e07]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x81d943
jmp 0x81da66
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb9e07]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x81da36
mov ecx, fcn.007a2600
mov eax, fcn.007a2600
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0x7084892d
lea ecx, [ecx + eax*2 + 0x1a4]
mov eax, dword [0xbb9df0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb9df0], eax
not eax
imul edx, eax
mov eax, dword [0xbb9df4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb9df4], eax
or esi, edx
not eax
mov edx, dword [0xbb9df8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb9df8], edx
or esi, eax
not edx
mov eax, dword [0xbb9dfc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb9dfc], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbb9e00], eax
or byte [0xbb9e07], dl
mov ecx, fcn.007a2600
mov eax, fcn.007a2600
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9e07], al
push 0xbb9df0
push dword [esp + 0x54]
call fcn.0078de60
add esp, 8
mov ecx, dword [esp + 0x44]
mov edx, edi
jmp 0x81dcae
mov edi, dword [esp + 0x34]
mov eax, 1
mov esi, edx
movzx edx, word [esi + 0x12]
mov ecx, eax
shl ecx, 5
cmp dx, word [edi + ecx + 0x12]
jle 0x81daa1
add ecx, edi
mov esi, ecx
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
jne 0x81da8d
mov eax, dword [ebx + 4]
xor ecx, ecx
mov edi, esi
mov edx, dword [edi + 0x18]
imul esi, ecx, 0x58
mov edx, dword [edx + ecx*4]
inc ecx
cmp ecx, dword [esp + 0x14]
mov dword [ebx + esi + 0x338], edx
movzx edx, byte [edx + 0x10]
mov byte [ebx + esi + 0x324], dl
lea edx, [edx + edx*8]
mov edx, dword [eax + edx*8 + 0x34]
mov dword [ebx + esi + 0x2f4], edx
jne 0x81dab1
mov dword [esp + 0x10], edi
movzx eax, word [ebx + 0x28]
and eax, 0x180
cmp eax, 0x100
jne 0x81db52
cmp word [esp + 0x54], 0
je 0x81db52
mov al, byte [ebx + 0x2f]
test al, al
jne 0x81db52
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
lea edi, [esp + 0x80]
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
movzx ecx, cx
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
mov edi, dword [esp + 8]
push dword [edi + eax*4 - 4]
push dword [esp + 0x30]
push pe_nt_image_headers32
push esi
call fcn.008274f0
add esp, 0x14
mov ecx, dword [ebx + 0xc]
movsx eax, al
cmp dword [ecx], eax
jne 0x81db52
mov byte [ebx + 0x2f], 2
and byte [ebx + 0x30], 0xfb
mov edx, dword [ebx + 8]
test edx, edx
je 0x81dc9a
mov edi, dword [esp + 0x10]
movzx eax, word [ebx + 0x28]
mov cl, byte [edi + 0x16]
test al, al
jns 0x81db84
movsx ecx, cl
cmp dword [edx], ecx
jne 0x81dc21
mov byte [ebx + 0x2f], 2
jmp 0x81dc21
mov byte [ebx + 0x2d], cl
test cl, cl
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x48], esi
jg 0x81dc21
mov ecx, dword [esp + 0x14]
mov byte [ebx + 0x2d], 0
test cl, cl
je 0x81dc21
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + esi*4 - 4]
mov ecx, dword [esi + 0x24]
test ecx, 0x1000
jne 0x81dc21
and ecx, 0x104
cmp ecx, 0x104
je 0x81dc21
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x78]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov ecx, ebx
lea eax, [eax - 1]
movzx eax, ax
push edi
push esi
push eax
push 0x800
push dword [esp + 0x20]
call fcn.008274f0
add esp, 0x14
mov edx, dword [ebx + 8]
movsx eax, al
cmp dword [edx], eax
jne 0x81dc1d
or byte [ebx + 0x30], 4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x48], eax
movzx eax, word [ebx + 0x28]
test eax, 0x200
je 0x81dc9a
cmp byte [esp + 0x14], 0
je 0x81dc9a
movsx eax, byte [ebx + 0x2d]
cmp dword [edx], eax
jne 0x81dc9a
mov esi, dword [esp + 0x10]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
lea edi, [esp + 0x70]
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
movzx ecx, cx
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
mov edi, dword [esp + 8]
push dword [edi + eax*4 - 4]
push dword [esp + 0x30]
push 0
push esi
call fcn.008274f0
add esp, 0x14
mov ecx, dword [ebx + 8]
movsx eax, al
cmp dword [ecx], eax
jne 0x81dc9a
or byte [ebx + 0x30], 8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
movzx eax, word [eax + 0x10]
mov word [ebx + 0x34], ax
call fcn.007994a0
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.00989fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret