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

Disassembly:
mov eax, 0x4d9555
call fcn.004d3f60
push ecx
cmp dword [ebp + 0xc], 0
jne 0x49b65d
mov eax, 0x80004003
jmp 0x49b998
push esi
push edi
mov edi, dword [ebp + 8]
push 0x28
lea esi, [edi + 0x88]
pop eax
call fcn.0049b088
test eax, eax
jne 0x49b67e
mov eax, 0x8007000e
jmp 0x49b996
mov eax, dword [esi]
mov cx, word [ebp + 0x18]
push ebx
push dword [ebp + 0x20]
mov word [eax], 3
push dword [ebp + 0x1c]
mov eax, dword [esi]
mov word [eax + 2], cx
mov eax, dword [esi]
push eax
lea eax, [edi + 0x14]
push eax
lea ecx, [edi + 8]
push ecx
lea ebx, [edi + 4]
push ebx
push 3
push dword [ebp + 0xc]
call fcn.0049b2d1
test eax, eax
jl 0x49b995
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [ebp + 0x18], eax
jge 0x49b6e8
cmp dword [ebp - 0x10], 0
je 0x49b6e0
push dword [ebp - 0x10]
call fcn.004d37ce
mov eax, dword [ebp + 0x18]
jmp 0x49b995
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [edi + 0x78]
push ecx
push eax
mov dword [ebp + 0x1c], ecx
call dword [edx + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x18], eax
jge 0x49b705
cmp dword [ebp - 0x10], ebx
jmp 0x49b6d6
push dword [ebp - 0x10]
call fcn.0049b0c7
test eax, eax
pop ecx
je 0x49b731
mov ebx, dword [ebp - 0x10]
mov edi, esi
call fcn.004052ac
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov edi, dword [ebp + 8]
add ebx, 0x7c
mov dword [ebp + 0xc], ebx
mov dword [ebx], eax
jmp 0x49b7aa
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x49b983
mov dword [ebp + 0x20], ebx
mov ecx, dword [eax]
lea ebx, [edi + 0x7c]
push ebx
lea edx, [ebp + 0x20]
push edx
push eax
mov dword [ebp + 0xc], ebx
call dword [ecx + 0x10]
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49b6d2
mov eax, dword [esi]
mov ax, word [eax + 0xc]
cmp ax, 1
jbe 0x49b783
mov ecx, dword [ebx]
movzx eax, ax
mov dword [ebp + 0x18], eax
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
test edx, edx
je 0x49b783
sub ecx, edx
add ecx, dword [ebp + 0x18]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x20]
ja 0x49b790
mov eax, dword [ebp + 0x20]
push eax
mov dword [ecx], eax
lea eax, [edi + 0xc]
push eax
call fcn.004aeff8
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49b6d2
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x49b7c1
mov ecx, dword [esi]
cmp eax, dword [ecx + 4]
je 0x49b7c1
mov dword [ebp + 0x20], 1
jmp 0x49b7c5
and dword [ebp + 0x20], 0
mov eax, dword [esi]
call fcn.0049b119
test eax, eax
je 0x49b7dd
mov eax, dword [esi]
cmp word [eax + 0xe], 0x40
jne 0x49b7dd
xor ecx, ecx
jmp 0x49b7e0
xor ecx, ecx
inc ecx
test ecx, ecx
lea eax, [edi + 0x90]
mov dword [eax], ecx
jne 0x49b7f7
cmp dword [ebp + 0x20], ecx
je 0x49b7f7
mov dword [eax], 1
cmp dword [eax], 0
je 0x49b977
push dword [ebx]
lea eax, [edi + 0x10]
push eax
call fcn.004aeff8
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49b6d2
mov eax, dword [esi]
call fcn.0049b0e6
test eax, eax
je 0x49b829
mov dword [edi], 0x49a0e0
jmp 0x49b841
mov eax, dword [esi]
mov ax, word [eax + 0xe]
sub ax, 0x20
neg ax
sbb eax, eax
not eax
and eax, 0x49a420
mov dword [edi], eax
mov ebx, dword [esi]
add edi, 0x8c
mov dword [ebp + 0x1c], edi
call fcn.004052ac
cmp dword [ebp + 0x20], 0
mov ebx, edi
mov eax, dword [ebx]
mov word [eax], 3
mov eax, dword [ebx]
mov word [eax + 0xe], 0x40
je 0x49b8bb
push dword [ebp + 0x14]
call fcn.004d38a6
mov edi, eax
test edi, edi
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax + 0x3c], edi
je 0x49b8bb
cmp dword [ebp + 0x14], 1
mov edx, dword [ebx]
mov eax, dword [edi]
sete cl
push ecx
movzx ecx, word [edx + 2]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [edx + 4]
call dword [eax + 4]
test al, al
je 0x49b8a7
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
jmp 0x49b8bb
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x49b8b7
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x3c], 0
mov ecx, dword [ebx]
movzx edx, word [ecx + 2]
movzx eax, word [ecx + 0xe]
imul eax, edx
cdq
push 8
pop edi
idiv edi
xor edx, edx
mov word [ecx + 0xc], ax
mov eax, dword [ebx]
movzx ecx, word [eax + 0xc]
imul ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
shl eax, 3
shr ecx, 3
div ecx
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
mov dword [eax + 0x80], edi
je 0x49b974
add eax, 0x28
call fcn.00496ec2
test eax, eax
jne 0x49b925
cmp dword [ebp - 0x10], eax
je 0x49b91e
push dword [ebp - 0x10]
call fcn.004d37ce
mov eax, 0x8007000e
jmp 0x49b995
mov eax, dword [ebx]
fild dword [ebp + 0x10]
movzx edi, word [eax + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
jge 0x49b943
fadd qword [0x4e9bc0]
mov esi, dword [ebp + 8]
fdivp st(1)
mov eax, dword [esi + 0x80]
xor edx, edx
div edi
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fadd qword [0x4e9aa8]
fadd qword [0x4e9ac8]
fmulp st(1)
call fcn.004d4030
imul eax, edi
mov dword [esi + 0x80], eax
mov edi, dword [ebp + 8]
and dword [edi + 0x84], 0
jmp 0x49b6d2
cmp dword [ebp - 0x10], ebx
je 0x49b990
push dword [ebp - 0x10]
call fcn.004d37ce
mov eax, 0x80004005
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x1c