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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
test edi, edi
js 0x10049d25
mov ecx, dword [esi + 0x860]
mov eax, 0x78787879
mov ebx, dword [esi + 0x85c]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x10049d22
jae 0x10049d69
imul edi, edi, 0x88
add edi, ebx
je 0x10049d22
cmp byte [edi + 8], 0xc
jne 0x1004993b
mov eax, dword [esi + 0x730]
cmp dword [eax + 0x5c], 0
jne 0x10049d14
mov eax, dword [esi + 0x874]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10049981
push 0x100000
call fcn.101554b7
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esi + 0x874], eax
mov dword [esi + 0x878], 0x100000
test eax, eax
jne 0x10049981
mov dword [esi + 0x74c], 0xa0000063
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [edi + 0x78]
lea ecx, [edi + 0x78]
mov dword [esp + 0x3c], ecx
mov eax, 0x66666667
mov ecx, dword [ecx + 4]
sub ecx, ebx
imul ecx
mov ecx, dword [edi]
sar edx, 4
mov eax, edx
mov dword [esp + 0x40], ecx
shr eax, 0x1f
xor ecx, ecx
add eax, edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x100499d8
lea edx, [ebx + 0x20]
cmp eax, ecx
jbe 0x10049d73
mov eax, dword [edx]
test eax, eax
je 0x100499cc
cmp eax, 1
je 0x100499cc
cmp eax, 2
jne 0x100499e1
mov eax, dword [esp + 0x38]
inc ecx
add edx, 0x28
cmp eax, ecx
jg 0x100499b6
cmp byte [edi + 0x84], 0
je 0x10049a0c
mov dword [esi + 0x74c], 0xa0000019
mov edx, dword [esi + 8]
test edx, edx
je 0x10049d4b
lea eax, [esi + 0x754]
push eax
push 0
push dword [ebp + 0xc]
push 0xa0000019
jmp 0x10049d45
xor ebx, ebx
mov dword [esp + 0x20], ebx
test eax, eax
jle 0x10049c5e
mov dword [esp + 0x24], ebx
nop
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x10049d73
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x44], ecx
cmp ecx, 1
je 0x10049c4a
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
cmp ecx, 2
jne 0x10049a7f
push 0x100000
push 0
push dword [esp + 0x18]
call fcn.10152e30
add esp, 0xc
jmp 0x10049aea
mov ecx, dword [esi + 0x854]
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 0x850]
xorps xmm0, xmm0
imul ecx
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x40]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x10049d6e
lea eax, [esp + 0x30]
push eax
imul eax, ecx, 0x58
lea ecx, [esi + 0x830]
push edi
add eax, dword [esi + 0x850]
push eax
call fcn.100542d0
test al, al
je 0x10049cfd
mov ecx, dword [esi + 0x34]
push 0
push dword [esp + 0x38]
mov eax, dword [ecx]
push dword [esp + 0x38]
call dword [eax + 0x20]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, ebx
or eax, edi
je 0x10049c46
test edi, edi
jl 0x10049b11
jg 0x10049b06
cmp ebx, 0x100000
jbe 0x10049b11
mov eax, 0x100000
mov dword [esp + 0x14], eax
jmp 0x10049b17
mov eax, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x44], 2
cdq
mov edi, edx
mov ebx, eax
mov dword [esp + 0x30], edi
je 0x10049b41
mov ecx, dword [esi + 0x34]
push edx
push ebx
push dword [esp + 0x18]
mov edi, dword [ecx]
call dword [edi + 0x18]
test eax, eax
je 0x10049c81
mov edi, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
push edi
push ebx
push dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x10049ca7
mov eax, ebx
or eax, edi
je 0x10049b8f
cmp byte [esi + 0x740], 0
mov ecx, esi
je 0x10049b74
push edi
push ebx
sub esp, 8
call fcn.10057590
jmp 0x10049b8f
add dword [esi + 0x7a8], ebx
mov eax, dword [esp + 0x14]
adc dword [esi + 0x7ac], edi
mov dword [esi + 0x768], eax
call fcn.10057380
mov edx, dword [esi + 8]
test edx, edx
je 0x10049c04
cmp byte [esi + 0x742], 0
lea edi, [esi + 0x754]
lea ebx, [esi + 0x750]
jne 0x10049bba
mov ecx, dword [edx]
lea eax, [esi + 0x758]
push edi
push ebx
push eax
push edx
call dword [ecx + 0xc]
mov eax, dword [ebx]
or eax, dword [edi]
je 0x10049be0
mov eax, dword [esi + 0x730]
mov dword [esi + 0x74c], 0xa0000017
cmp dword [eax + 0x38], 0
je 0x10049be0
mov ecx, dword [ebp + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10049c04
mov eax, dword [ecx]
call dword [eax + 0x50]
test eax, eax
je 0x10049c04
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x38]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
push dword [esi + 8]
call dword [edi + 0x18]
mov ecx, dword [esi + 0x754]
or ecx, dword [esi + 0x750]
jne 0x10049d5e
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cdq
sub ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
sbb edi, edx
cdq
sub dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x1c], edi
sbb dword [esp + 0x2c], edx
or eax, edi
jne 0x10049af8
mov ebx, dword [esp + 0x20]
add dword [esp + 0x24], 0x28
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x38]
jl 0x10049a20
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x10049d14
mov dword [esi + 0x74c], 0xa0000047
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
mov dword [esi + 0x74c], 0xa0000015
test edx, edx
je 0x10049d4b
lea eax, [esi + 0x754]
push eax
push 0
push dword [ebp + 0xc]
jmp 0x10049d40
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edx, dword [esi + 8]
cmp eax, 0x70
jne 0x10049cdc
mov dword [esi + 0x74c], 0xa0000054
test edx, edx
je 0x10049d4b
lea eax, [esi + 0x754]
push eax
push 0
push dword [ebp + 0xc]
push 0xa0000054
jmp 0x10049d45
mov dword [esi + 0x74c], 0xa0000030
test edx, edx
je 0x10049d4b
lea eax, [esi + 0x754]
push eax
push 0
push dword [ebp + 0xc]
push 0xa0000030
jmp 0x10049d45
mov eax, dword [esi + 0x838]
mov dword [esi + 0x74c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 8]
mov dword [esi + 0x74c], 0xa0000015
test edx, edx
je 0x10049d4b
lea eax, [esi + 0x754]
push eax
push 0
push ebx
push 0xa0000015
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
cmp byte [esi + 0x734], 0
je 0x10049d5e
mov dword [esi + 0x748], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.100204e0
call fcn.100204e0
call fcn.100204e0
int3