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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov edi, ecx
mov ecx, dword [edi + 0x40]
test byte [ecx + 0xbd], 1
jne 0x49ead7
cdq
mov esi, eax
and esi, edx
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x49eafd
mov eax, 0xc0000024
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
jne 0x49eb07
cmp edx, 0xffffffff
je 0x49eae2
push edx
push eax
lea esi, [ecx + 0xe4]
call fcn.0045b640
cmp eax, ebx
je 0x49eb49
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
je 0x49eb49
cmp byte [ecx + 0x3c], 4
jne 0x49eae2
test byte [eax + 0x10], 8
jne 0x49eb64
mov eax, 0xc0000022
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc0000008
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x68], 2
jne 0x49eb8a
cmp dword [ecx + 0x6c], 1
jae 0x49eb8a
mov dword [edi + 0x110], 0xc00000a5
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, ecx
and eax, 3
xor edx, edx
or eax, edx
je 0x49ebb5
mov dword [edi + 0x110], 0x80000002
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0x20]
push esi
push ecx
mov edx, 0x14
mov ecx, edi
call eax
test al, al
je 0x49ebe6
mov dword [edi + 0x110], 0xc0000005
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x40]
mov esi, eax
lea eax, [eax + eax*2]
add eax, eax
xor edx, edx
add eax, eax
cmp edx, dword [ecx + 0x7c]
jb 0x49ec1e
ja 0x49ec04
cmp eax, dword [ecx + 0x78]
jb 0x49ec1e
mov dword [edi + 0x110], 0xc000000d
mov dword [edi + 0x114], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
add eax, 8
push eax
push ecx
push edx
mov eax, edi
call fcn.0048c730
cmp eax, ebx
jl 0x49eb4e
cmp esi, 1
jbe 0x49ec6a
cmp esi, 0x23
jb 0x49ec49
mov esi, 0x22
mov ecx, dword [ebp + 8]
lea edx, [esi + esi*2 - 3]
add edx, edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebp + 0xc]
add edx, edx
add ecx, 0x14
adc eax, ebx
push eax
mov eax, dword [edi + 0x20]
push ecx
mov ecx, edi
call eax
xor edx, edx
cmp esi, ebx
jbe 0x49ecb3
lea eax, [esp + 0x30]
mov dword [esp + 0x18], esi
jmp 0x49ec80
mov ecx, dword [eax - 8]
lea ebx, [ecx - 2]
cmp ebx, 0x21
ja 0x49eca7
xor ebx, ebx
cmp dword [eax - 4], ebx
jne 0x49eca9
mov ebx, dword [esp + 0x1c]
test byte [ebx + ecx + 0xb8], 2
je 0x49eca7
or dword [eax], 0x80000000
inc edx
xor ebx, ebx
add eax, 0xc
sub dword [esp + 0x18], 1
jne 0x49ec80
test byte [esp + 0x24], 1
mov byte [esp + 0x17], 1
je 0x49ecc5
cmp edx, esi
je 0x49eccd
jmp 0x49ecc9
cmp edx, ebx
jne 0x49eccd
mov byte [esp + 0x17], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x17]
push ecx
push edx
push eax
mov eax, dword [edi + 0x24]
mov edx, 1
mov ecx, edi
call eax
mov dword [edi + 0x114], ebx
test al, al
je 0x49ed04
mov dword [edi + 0x110], 0xc0000005
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x110], ebx
cmp esi, ebx
je 0x49ed2e
mov eax, dword [ebp + 8]
lea edx, [esi + esi*2]
add edx, edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
add edx, edx
add eax, 8
adc ecx, ebx
push ecx
push eax
mov eax, dword [edi + 0x24]
mov ecx, edi
call eax
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret