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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
or dword [ebp - 4], 0xffffffff
mov eax, edx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x18], ecx
push edi
mov dword [ebp - 0x24], edi
inc ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edi
call fcn.100e0f10
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x100d9fd9
cmp dword [ebp + 0x14], edi
jne 0x100d998b
mov ecx, dword [esi + 0x10]
push 2
pop edx
call fcn.1010a79c
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100d9fd9
mov eax, dword [eax + 0x1c]
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
movzx edi, cx
neg edi
sbb edi, edi
and edi, ebx
cmp ax, 0x1c
je 0x100d99b2
cmp ax, 7
je 0x100d99b2
cmp ax, 0x16
je 0x100d99b2
cmp ax, 0x1e
jne 0x100d99c1
mov ecx, esi
call fcn.100e0408
test eax, eax
je 0x100d9fcb
mov edx, dword [ebp - 0x10]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 0x14]
mov ecx, esi
call fcn.100e0080
test eax, eax
je 0x100d9fcb
mov ecx, esi
call fcn.100e04f3
test eax, eax
je 0x100d9fcb
push ebx
push ebx
xor edx, edx
mov ecx, esi
call fcn.100e07b7
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x38]
push ebx
push 0x200
mov ecx, dword [ecx + 0x14]
call fcn.101098e2
push ebx
push 1
push ebx
xor edx, edx
mov ecx, esi
call fcn.100dcd19
mov ecx, esi
call fcn.100e087a
test eax, eax
je 0x100d9fcb
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x100d9abb
mov edx, dword [ebp + 8]
mov ecx, edx
call fcn.100d98e6
test eax, eax
je 0x100d9ab9
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
lea edi, [eax + 0x14]
test ecx, ecx
je 0x100d9aaa
xor eax, eax
dec ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x10], eax
je 0x100d9aa3
cmp dword [edi + 0x24], eax
je 0x100d9aa3
lea eax, [ebp - 4]
mov ecx, edi
push eax
push dword [ebp - 4]
xor eax, eax
push dword [edi + 0x1c]
push dword [ebp - 8]
push eax
push edx
push dword [ebp - 0x14]
mov edx, esi
push dword [ebp - 0x18]
call fcn.100d723f
cmp eax, 0x80004001
je 0x100d9a9b
cmp eax, 0x4dc01
je 0x100d9af7
test eax, eax
js 0x100d9fbc
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
add edi, 0x78
test ecx, ecx
jne 0x100d9a57
mov eax, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x100d9edc
xor edx, edx
mov eax, dword [esi + 0x24]
mov edi, edx
mov dword [ebp - 0x10], edi
cmp dword [eax + 0x128], edx
jne 0x100d9ae0
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x10]
push edx
push edx
push eax
xor edx, edx
call fcn.1010aa1b
mov edi, dword [ebp - 0x10]
xor edx, edx
mov ecx, dword [ebp + 8]
movzx eax, cx
dec eax
cmp eax, 0x22
ja case.0x100d9af0.19
jmp dword [eax*4 + 0x100d9fec]
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
jmp 0x100d9aad
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x40]
mov dword [ebp - 4], eax
jmp 0x100d9edc
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x42]
jmp 0x100d9b06
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x44]
jmp 0x100d9b06
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x46]
jmp 0x100d9b06
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
jmp 0x100d9b06
test ebx, ebx
je 0x100d9b3a
xor eax, eax
mov word [ebx], ax
mov dword [ebp - 4], edx
jmp 0x100d9edc
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x3c]
mov edx, ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x100d9b68
mov eax, dword [esi + 0x30]
test byte [eax + 0x10], 0x10
jne 0x100d9b68
mov eax, 0x270f
cmp ecx, eax
jae 0x100d9b68
mov dword [ebp - 4], eax
mov edx, eax
mov eax, 0x7fff
cmp edx, eax
jb 0x100d9edc
jmp 0x100d9b06
mov edi, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x38]
push 3
push ecx
mov ecx, edi
call fcn.10109972
test eax, eax
je 0x100d9bae
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x100d9ba0
mov eax, dword [edi + 0x13c]
add eax, ecx
jmp 0x100d9ba2
xor eax, eax
test eax, eax
je 0x100d9bae
xor eax, eax
inc eax
jmp 0x100d9b06
xor eax, eax
jmp 0x100d9b06
mov eax, dword [ebp - 8]
test dword [eax + 0x48], 0x4000
jne 0x100d9bc8
mov eax, edx
jmp 0x100d9b06
mov ecx, dword [esi + 0x24]
cmp dword [ecx + 0x128], edx
jne 0x100d9be4
mov eax, dword [ecx + 0x88]
and eax, 2
or eax, 1
jmp 0x100d9b06
xor edx, edx
call fcn.10109f87
jmp 0x100d9b06
mov ecx, dword [esi + 0x24]
call fcn.100e8068
jmp 0x100d9b06
push dword [ebp + 0x10]
push edx
push edx
push edx
mov edx, ebx
mov ecx, esi
call fcn.100da0ef
jmp 0x100d9b06
push dword [ebp + 0x10]
push edx
push edx
push ebx
xor edx, edx
jmp 0x100d9c05
push dword [ebp + 0x10]
push edx
push ebx
push edx
jmp 0x100d9c17
push ecx
mov ecx, esi
call fcn.100da47e
jmp 0x100d9b06
mov edx, ebx
mov ecx, esi
call fcn.100da5e1
jmp 0x100d9b06
mov edx, ebx
mov ecx, esi
call fcn.100da680
jmp 0x100d9b06
mov edx, ebx
mov ecx, esi
call fcn.100da6de
jmp 0x100d9b06
test edi, edi
je 0x100d9c67
mov eax, dword [esi + 0x30]
test byte [eax + 0x10], 0x10
je 0x100d9c9e
mov edi, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x38]
push 0xa
push ecx
mov ecx, edi
call fcn.10109972
test eax, eax
je 0x100d9bae
mov ecx, dword [edi + 0xf0]
test ecx, ecx
je 0x100d9c94
mov eax, dword [edi + 0x13c]
add eax, ecx
jmp 0x100d9c96
xor eax, eax
test eax, eax
je 0x100d9bae
mov dword [ebp - 4], 1
jmp 0x100d9edc
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x88]
shr eax, 3
and eax, 1
jmp 0x100d9b06
mov edx, ebx
mov ecx, esi
call fcn.100da89c
jmp 0x100d9b06
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
push ecx
mov ecx, esi
mov edx, dword [eax + 8]
call fcn.100ef55d
test eax, eax
je 0x100d9bae
test ebx, ebx
je 0x100d9ba6
push 0x20
mov edx, eax
mov ecx, ebx
call fcn.1010a2fa
jmp 0x100d9ba6
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x74]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d9edc
or dword [ebp - 4], 0xffffffff
jmp 0x100d9edc
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x78]
jmp 0x100d9d06
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x7c]
jmp 0x100d9d06
mov ecx, esi
call fcn.100da74d
jmp 0x100d9b06
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x128], edx
je 0x100d9d51
mov eax, dword [esi + 0x18]
test dword [eax + 0xc], 0x100000
je 0x100d9df3
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x2c]
call fcn.10126845
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x100d9df1
mov ecx, edi
call fcn.100da7a5
mov dword [ebp - 4], eax
test eax, eax
je 0x100d9de5
test ebx, ebx
je 0x100d9de5
xor ecx, ecx
mov dword [ebp - 0x1c], edi
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp word [edi], cx
je 0x100d9de2
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x1c]
cmp edi, 0xffffffff
je 0x100d9d9a
cmp edi, 0x40
jl 0x100d9dd9
push 0x40
mov edx, esi
mov ecx, ebx
call fcn.1010a2fa
mov ecx, esi
sub ebx, 0xffffff80
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x24]
jne 0x100d9dad
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp edi, 0xffffffff
je 0x100d9dcb
sub edi, 0x40
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
mov dword [ebp - 0x10], eax
cmp word [esi], cx
jne 0x100d9d90
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100d9edc
xor edx, edx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100d9edc
cmp dword [ebp + 0x10], 0xffffffff
je 0x100d9e12
cmp dword [ebp + 0x10], 0x40
jl 0x100d9b3a
call fcn.1010bbbf
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x88]
test eax, eax
je 0x100d9e33
test edx, 0x400
je 0x100d9e4e
mov edx, 0x10025328
jmp 0x100d9e40
test edx, 0x200
je 0x100d9e4e
mov edx, 0x10025330
push 0x40
mov ecx, ebx
call fcn.1010a2fa
jmp 0x100d9edc
mov eax, dword [ecx + 0xcc]
test eax, eax
je 0x100d9e62
mov edx, dword [ecx + 0x13c]
add edx, eax
jmp 0x100d9e66
xor eax, eax
mov edx, eax
test edx, edx
je 0x100d9d11
push dword [edx + 0x14]
call fcn.10109ea2
test eax, eax
je 0x100d9d11
push 0x40
push ebx
mov edx, eax
mov ecx, esi
call fcn.100ec860
jmp 0x100d9d09
mov ecx, dword [esi + 0x24]
lea eax, [ebp - 0x2c]
push eax
push edx
mov edx, 0x100216cc
call fcn.10109de5
test eax, eax
je 0x100d9bae
mov edx, dword [esi + 0x38]
push eax
push 0xffff
push ecx
mov ecx, dword [esi + 0x24]
call fcn.10109972
jmp 0x100d9ba2
push edx
mov edx, ebx
mov ecx, esi
call fcn.100da976
jmp 0x100d9b06
push ebx
xor edx, edx
jmp 0x100d9ec3
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 4]
lea ebx, [eax + 0x14]
test ecx, ecx
je 0x100d9f95
xor eax, eax
dec ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 0x10], eax
je 0x100d9f87
mov edi, dword [ebp - 4]
cmp dword [ebx + 0x24], eax
je 0x100d9f41
lea eax, [ebp - 4]
mov edx, esi
push eax
push edi
push dword [ebx + 0x1c]
mov ecx, ebx
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.100d723f
cmp eax, 0x80004001
je 0x100d9f82
cmp eax, 0x4dc01
jne 0x100d9f82
mov dword [ebp - 0xc], 1
jmp 0x100d9f82
test byte [ebx + 0x3c], 0x40
je 0x100d9f4c
mov eax, dword [ebx + 0x58]
jmp 0x100d9f59
push 6
pop edx
mov ecx, ebx
call fcn.1010e691
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100d9f85
push edi
push dword [ebx + 0x1c]
mov ecx, eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [0x101a27b8]
call dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
xor eax, eax
add ebx, 0x78
test ecx, ecx
jne 0x100d9ef5
mov edx, dword [ebp - 0x2c]
cmp dword [ebp + 0xc], 0
jne 0x100d9fcb
mov edi, dword [ebp - 4]
cmp edi, 0xffffffff
je 0x100d9fcb
cmp edx, 0xffffffff
je 0x100d9fcb
cmp edi, edx
jae 0x100d9fcb
mov ecx, dword [ebp + 8]
call fcn.100d98e6
test eax, eax
je 0x100d9fcb
test edi, edi
jne 0x100d9fc2
or dword [ebp - 4], 0xffffffff
jmp 0x100d9fcb
cmp dword [ebp - 0xc], 0
jne 0x100d9fcb
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100d9fd9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call fcn.100e0eb0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10