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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor eax, eax
test dword [esi + 8], 0x80000
push edi
mov dword [ebp - 0xc], eax
je 0x1001bb08
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
mov dword [ebp - 8], 1
cmp ecx, dword [esi + 0x24]
jbe 0x1001bb0b
mov dword [ebp - 8], eax
cmp dword [esi], eax
jne 0x1001bb2b
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x8c]
mov ecx, dword [ecx]
sub ecx, edx
cmp ecx, 0x14ccc
jb 0x1001bb2b
mov ecx, dword [esi + 0x74]
add ecx, edx
jmp 0x1001bb31
lea ecx, [esi + 0x39272]
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x30], ecx
mov dword [ebp - 4], ecx
add ecx, 0x14cbc
mov dword [esi + 0x34], ecx
mov cl, byte [esi + 0x38]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
shr byte [edx], cl
xor ecx, ecx
push 8
pop edx
cmp dword [esi + 0x38], edx
sete cl
sub dword [esi + 0x28], ecx
test dword [esi + 8], 0x1000
je 0x1001bbcd
cmp dword [esi + 0x64], eax
jne 0x1001bbcd
mov ecx, dword [esi + 0x44]
push 0x78
pop edi
shl edi, cl
add ecx, edx
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], edi
cmp ecx, edx
jb 0x1001bb9b
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001bb8e
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bb7e
mov ecx, dword [esi + 0x44]
xor edi, edi
inc edi
shl edi, cl
add ecx, 8
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], edi
cmp ecx, edx
jb 0x1001bbcd
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001bbc0
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bbb0
mov ecx, dword [esi + 0x44]
xor ebx, ebx
cmp dword [ebp + 8], 4
sete bl
shl ebx, cl
or dword [esi + 0x48], ebx
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, edx
jb 0x1001bc03
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x1001bbf6
mov bl, byte [esi + 0x48]
mov byte [ecx], bl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bbe6
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 8], eax
jne 0x1001bc4a
test dword [esi + 8], 0x40000
jne 0x1001bc23
cmp dword [esi + 0x3c], 0x30
jae 0x1001bc26
xor eax, eax
inc eax
push eax
mov eax, esi
call fcn.1001babc
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x1001bd56
mov eax, dword [esi + 0x30]
sub eax, edi
inc eax
cmp eax, ecx
jb 0x1001bd56
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x1001bd56
xor eax, eax
mov ecx, ebx
shl eax, cl
push 8
add ebx, 2
pop edx
or eax, dword [ebp - 0x10]
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
cmp ebx, edx
jb 0x1001bc92
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bc85
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bc75
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001bcc0
xor eax, eax
shl eax, cl
mov dword [esi + 0x44], edx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bcb3
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bca3
push 2
pop edi
mov ecx, dword [esi + 0x44]
movzx eax, word [esi + 0x3c]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001bcf6
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bce9
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001bcd9
xor dword [esi + 0x3c], 0xffff
mov eax, dword [esi + 0x3c]
dec edi
test edi, edi
jne 0x1001bcc3
xor edx, edx
test eax, eax
jbe 0x1001bd74
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x1001bd4e
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bd40
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x1001bd30
inc edx
cmp edx, dword [esi + 0x3c]
jb 0x1001bd0b
jmp 0x1001bd74
cmp dword [ebp - 0xc], 0
jne 0x1001bd74
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
call fcn.1001b7f2
mov eax, esi
call fcn.1001b895
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1001bea8
mov ecx, dword [esi + 0x44]
push 4
pop edi
cmp dword [ebp + 8], edi
jne 0x1001be09
cmp ecx, ebx
je 0x1001bdb8
xor eax, eax
shl eax, cl
push 8
pop ecx
mov dword [esi + 0x44], ecx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bdab
mov dl, byte [esi + 0x48]
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], ecx
jae 0x1001bd9b
test dword [esi + 8], 0x1000
je 0x1001bea8
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x44]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x1001bdfe
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001bdf0
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x1001bde0
shl edx, 8
dec edi
jne 0x1001bdc8
jmp 0x1001bea8
xor eax, eax
shl eax, cl
push 8
pop edx
or dword [esi + 0x48], eax
lea eax, [ecx + 3]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001be3a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001be2d
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001be1d
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001be68
xor eax, eax
shl eax, cl
mov dword [esi + 0x44], edx
or dword [esi + 0x48], eax
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001be5b
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001be4b
push 2
pop edi
mov ecx, dword [esi + 0x44]
movzx eax, bx
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, edx
jb 0x1001be9d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x1001be90
mov cl, byte [esi + 0x48]
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], edx
jae 0x1001be80
dec edi
xor ebx, 0xffff
test edi, edi
jne 0x1001be6b
push 0x240
xor ebx, ebx
lea eax, [esi + 0x8192]
push ebx
push eax
call sub.ntdll.dll_memset
push 0x40
lea eax, [esi + 0x83d2]
push ebx
push eax
call sub.ntdll.dll_memset
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
add esp, 0x18
inc dword [esi + 0x64]
sub edi, dword [ebp - 4]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], ebx
je 0x1001bf69
cmp dword [esi], ebx
je 0x1001bf26
mov eax, dword [esi + 0x84]
sub eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [ecx], eax
push dword [esi + 4]
lea eax, [esi + 0x39272]
push edi
push eax
call dword [esi]
test eax, eax
jne 0x1001bf69
or eax, 0xffffffff
mov dword [esi + 0x6c], eax
jmp 0x1001bf6c
lea ecx, [esi + 0x39272]
cmp dword [ebp - 4], ecx
jne 0x1001bf63
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x8c]
mov ebx, dword [edx]
sub ebx, eax
cmp edi, ebx
jae 0x1001bf44
mov ebx, edi
push ebx
push ecx
mov ecx, dword [esi + 0x74]
add ecx, eax
push ecx
call fcn.1001ac2b
add dword [esi + 0x8c], ebx
sub edi, ebx
je 0x1001bf69
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
jmp 0x1001bf69
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
leave
ret 4