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

Disassembly:
push 0xffffffffffffffff
push 0x1016370d
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b734c]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x180]
mov esi, dword [esp + 0x184]
mov ebp, dword [esp + 0x19c]
xor edi, edi
mov dword [esp + 0x24], edi
mov ecx, 0xf
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
mov dword [esp + 0x178], 1
cmp dword [esi + 0x22c], edi
je 0x1004940b
mov dword [esi + 0x228], 0x102bfd50
jmp 0x1004941d
lea eax, [esi + 0x94]
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], edi
fld qword [0x1016b598]
fld qword [esp + 0x1a0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x10049959
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x10049959
mov edi, dword [esp + 0x188]
mov edx, dword [esi + 0x228]
xor ecx, ecx
cmp dword [edx + edi*4], ecx
jne 0x100494b0
push 0xffffffffffffffff
fstp st(0)
mov esi, 0xf
mov dword [ebx + 0x14], ecx
push ecx
mov dword [ebx + 0x18], esi
lea eax, [esp + 0x40]
mov byte [ebx + 4], cl
push eax
mov ecx, ebx
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x178], 0
cmp dword [esp + 0x50], 0x10
jb 0x1004949f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100eedad
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], 0
jmp 0x100499a4
fld qword [0x1016b968]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, word [esp + 0x18]
mov word [esi + edi*4 + 0x230], dx
fldcw word [esp + 0x14]
fmul qword [0x1016b9a0]
fnstcw word [esp + 0x14]
fadd qword [0x1016b958]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov ax, 0xb
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, word [esp + 0x18]
sub ax, dx
mov word [esi + edi*4 + 0x232], ax
fldcw word [esp + 0x14]
jne 0x1004952d
mov word [esi + edi*4 + 0x232], cx
jmp 0x1004953d
cmp ax, 3
jb 0x1004953d
mov word [esi + edi*4 + 0x232], 3
push 0x9c41
call fcn.100ffe35
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1004957c
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.10009e60
mov dword [esp + 0x24], 1
mov byte [esp + 0x178], 0
lea ecx, [esp + 0x38]
call fcn.10006110
jmp 0x100499a9
push 0xbb80
mov dword [esp + 0x24], 0
call fcn.100ffe35
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x100495ad
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100ffef8
add esp, 4
lea edx, [esp + 0x38]
push edx
jmp 0x10049557
mov eax, dword [esp + 0x14]
push 0x9c41
push 0
push eax
call fcn.10100e30
mov ecx, dword [esp + 0x28]
push 0xbb80
push 0
push ecx
call fcn.10100e30
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x1b4]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1b4]
push ecx
mov ecx, dword [esp + 0x1b4]
push ebp
push edx
mov edx, dword [esp + 0x1b8]
push eax
push ecx
push edx
push edi
lea ecx, [esp + 0x68]
call fcn.10046d80
add esp, 0x3c
test eax, eax
jne 0x10049631
mov eax, dword [esp + 0x14]
push eax
call fcn.100ffef8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100ffef8
add esp, 8
lea edx, [esp + 0x38]
push edx
jmp 0x10049557
push 0x1016b5e4
push ebp
call fcn.10102c50
mov ecx, eax
add esp, 8
test ecx, ecx
mov dword [esp + 0x54], eax
je 0x10049650
add ecx, 1
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x1a8]
test eax, eax
jne 0x100497cf
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], ebp
jle 0x100498dd
mov eax, dword [esp + 0x1c]
add eax, 0xffffffee
mov dword [esp + 0x28], eax
jmp 0x10049688
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x100496d9
test ebp, ebp
jle 0x100496d9
movzx esi, word [eax]
movzx edx, word [eax - 4]
add edx, esi
movzx esi, word [eax + 0x14]
cmp esi, edx
jl 0x100496d9
mov edx, ecx
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x100496a3
mov edi, dword [esp + 0x14]
sub ecx, edx
mov ebp, ecx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100496b7
mov eax, dword [esp + 0x28]
mov ecx, ebp
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0x1a]
mov edx, ecx
mov edi, edi
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x100496e0
mov edi, dword [esp + 0x14]
sub ecx, edx
mov esi, edx
mov edx, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100496f6
add dword [esp + 0x28], 0x18
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, 1
and ecx, 3
cmp ebp, dword [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], ebp
jl 0x10049680
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x100498dd
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov bl, 0x25
lea ebx, [ebx]
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
add eax, dword [esp + 0x30]
add ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x64], 0x7c
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], 0x64
mov byte [esp + 0x67], 0x2c
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], 0x64
mov byte [esp + 0x6a], 0
call fcn.10101c10
lea eax, [esp + 0x7c]
add esp, 0x10
mov ecx, eax
jmp 0x10049790
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049790
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100497a4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebp, 0x18
sub dword [esp + 0x18], 1
rep movsb byte es:[edi], byte [esi]
jne 0x10049740
jmp 0x100498d9
cmp eax, 1
jne 0x100498dd
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0x100498dd
mov bl, 0x25
test ebp, ebp
mov eax, dword [esp + 0x1c]
jne 0x10049833
movzx ecx, word [eax + 2]
movzx edx, word [eax]
add ecx, dword [esp + 0x30]
add edx, dword [esp + 0x2c]
push ecx
add eax, 8
push edx
push eax
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], 0x73
mov byte [esp + 0x62], 0x24
mov byte [esp + 0x63], bl
mov byte [esp + 0x64], 0x64
mov byte [esp + 0x65], 0x24
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], 0x64
mov byte [esp + 0x68], 0
lea eax, [esp + 0x60]
jmp 0x10049883
lea edx, [ebp + ebp*2]
movzx ecx, word [eax + edx*8 + 2]
add ecx, dword [esp + 0x30]
lea eax, [eax + edx*8]
movzx edx, word [eax]
add edx, dword [esp + 0x2c]
push ecx
add eax, 8
push edx
push eax
mov byte [esp + 0x6c], 0x7c
mov byte [esp + 0x6d], bl
mov byte [esp + 0x6e], 0x73
mov byte [esp + 0x6f], 0x24
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0x64
mov byte [esp + 0x72], 0x24
mov byte [esp + 0x73], bl
mov byte [esp + 0x74], 0x64
mov byte [esp + 0x75], 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.10101c10
lea eax, [esp + 0x80]
add esp, 0x14
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100498a0
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100498b4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebp, 1
cmp ebp, dword [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
jl 0x100497e6
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100498e6
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.10009ca0
push esi
call fcn.100ffef8
mov edx, dword [esp + 0x20]
push edx
call fcn.100ffef8
add esp, 8
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [esp + 0x40]
mov esi, 0xf
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], edi
push eax
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x178], 0
cmp dword [esp + 0x50], 0x10
jb 0x10049953
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100eedad
add esp, 4
mov dword [esp + 0x50], esi
jmp 0x100499a0
push 0xffffffffffffffff
fstp st(0)
mov dword [ebx + 0x18], ecx
push edi
lea edx, [esp + 0x40]
mov dword [ebx + 0x14], edi
push edx
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x178], 0
cmp dword [esp + 0x50], 0x10
jb 0x10049998
mov eax, dword [esp + 0x3c]
push eax
call fcn.100eedad
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
mov eax, ebx
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.101003d3
add esp, 0x168
ret