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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
test eax, eax
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x68], eax
je 0x49cf3a
mov eax, dword [0x6fa380]
mov edi, dword [0x6fa37c]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
je 0x49cf2c
mov dword [esp + 0x68], 0
jmp 0x49cf31
call fcn.004d3aa0
call fcn.00495a20
fstp qword [esp + 0x70]
cmp byte [esi + 0x22c], 0
je 0x49cf4a
mov eax, esi
call fcn.0049f010
cmp byte [esi + 0x213], 0
je 0x49cf59
push esi
call fcn.0049be90
mov cl, byte [esi + 0x20c]
or byte [ebp + 0x18], cl
cmp dword [esi + 0x248], 0
jne 0x49cf6f
mov byte [ebp + 0x18], 1
test byte [esi + 0x212], 2
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
je 0x49cfc5
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
push ebx
push edi
mov ecx, esi
call edx
test eax, eax
mov dword [esp + 0x28], eax
je 0x49cfc5
mov esi, dword [esp + 0x68]
test esi, esi
je 0x49cfb8
call fcn.00495a20
fsub qword [esp + 0x70]
sub esp, 8
mov eax, 1
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [esi + 8]
or byte [ebp + 0x14], al
je 0x49d13e
test byte [esi + 0x212], 1
je 0x49d021
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push eax
push ebx
push edi
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x49d13e
mov esi, dword [esp + 0x68]
test esi, esi
je 0x49d016
call fcn.00495a20
fsub qword [esp + 0x70]
sub esp, 8
mov eax, 1
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
jne 0x49d0b4
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x30]
jge 0x49d0b4
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x34]
jge 0x49d0b4
mov eax, dword [edi + 4]
test al, 1
jne 0x49d0b4
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x49d07c
add eax, eax
jne 0x49d067
mov eax, 1
shl eax, 4
push eax
mov eax, dword [edi]
push eax
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [edi], eax
je 0x49d0b4
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
shr eax, 1
shl eax, 4
add eax, dword [edi]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [edi + 4], ecx
mov edx, dword [esi + 0x178]
cmp edx, dword [esi + 0x180]
jge 0x49d13e
mov eax, dword [esi + 0x17c]
cmp eax, dword [esi + 0x184]
jge 0x49d13e
mov eax, dword [edi + 4]
test al, 1
jne 0x49d13e
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x49d0fe
add eax, eax
jne 0x49d0e9
mov eax, 1
mov edx, dword [edi]
shl eax, 4
push eax
push edx
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [edi], eax
je 0x49d13e
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x178]
shr eax, 1
shl eax, 4
add eax, dword [edi]
mov dword [eax], ecx
mov edx, dword [esi + 0x17c]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x180]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x184]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [edi + 4], ecx
mov edx, dword [esi + 0x178]
cmp edx, dword [esi + 0x180]
jge 0x49d15a
mov eax, dword [esi + 0x17c]
cmp eax, dword [esi + 0x184]
jl 0x49d1a4
cmp byte [ebp + 0x18], 0
je 0x49d1a4
mov cl, byte [esi + 0x20d]
cmp cl, byte [esi + 0x20c]
jne 0x49d1a4
cmp dword [esp + 0x68], 0
mov dword [esi + 8], 0
je 0x49d199
call fcn.00495a20
fsub qword [esp + 0x70]
mov ecx, dword [esp + 0x68]
sub esp, 8
mov eax, 1
fstp qword [esp]
call fcn.004d3ce0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x204], 0
je 0x49d259
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edx, 0x10
add dword [esp + 0x2c], edx
sub dword [esp + 0x34], edx
add ecx, edx
sub eax, edx
cmp ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jge 0x49d259
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x2c], eax
jge 0x49d259
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
test al, 1
jne 0x49d259
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x49d221
add eax, eax
jne 0x49d20c
mov eax, 1
mov edx, dword [ebx]
shl eax, 4
push eax
push edx
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [ebx], eax
je 0x49d259
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
shr eax, 1
shl eax, 4
add eax, dword [ebx]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebx + 4], ecx
xor eax, eax
test dword [esi + 0x19c], 0xfffffffe
mov dword [esp + 0x24], eax
jbe 0x49d2c0
mov edx, dword [esi + 0x198]
mov ebx, dword [edx + eax*4]
cmp dword [ebx + 0x1b0], 0
je 0x49d282
call fcn.0049cdd0
mov al, byte [ebx + 0x20c]
test al, al
je 0x49d294
cmp byte [ebx + 0x20d], al
je 0x49d2a9
mov eax, dword [esi + 0x198]
mov ecx, dword [esp + 0x24]
mov edi, dword [eax + ecx*4]
call fcn.0049cca0
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x19c]
add eax, 1
shr edx, 1
cmp eax, edx
mov dword [esp + 0x24], eax
jb 0x49d26b
mov edi, dword [edi + 4]
mov eax, dword [esi + 8]
shr edi, 1
test dword [esi + 0x19c], 0xfffffffe
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
jbe 0x49d432
fld1
fldz
jmp 0x49d2f6
fldz
fld1
fxch st(1)
cmp byte [ebp + 0x18], 0
mov ecx, dword [esi + 0x198]
mov edx, dword [esp + 0x24]
mov ebx, dword [ecx + edx*4]
jne 0x49d320
cmp byte [ebx + 0x20c], 0
jne 0x49d320
fstp st(0)
push ebx
fstp st(0)
call fcn.0049be90
fld1
fldz
cmp byte [ebx + 0x217], 0
je 0x49d395
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 0x5c]
fstp st(0)
mov ecx, ebx
call edx
test al, al
je 0x49d3a8
fld1
fldz
cmp byte [ebx + 0x217], 0
je 0x49d454
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 0x5c]
fstp st(0)
mov ecx, ebx
call edx
fld1
test al, al
fldz
jne 0x49d467
fxch st(1)
mov byte [esp + 0x64], 1
fst dword [esp + 0x40]
lea esi, [esp + 0x40]
fst dword [esp + 0x50]
fstp dword [esp + 0x60]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fstp dword [esp + 0x5c]
jmp 0x49d3ab
cmp byte [ebx + 0x55], 0
jne 0x49d33e
cmp byte [ebx + 0xed], 0
jne 0x49d33e
fstp st(0)
fstp st(0)
mov esi, dword [ebp + 0x10]
mov ecx, 0xa
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
test byte [ebx + 8], 1
je 0x49d3c5
push ebx
call fcn.0049be90
lea esi, [ebx + 0x1dc]
mov ecx, 0xa
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
lea eax, [esp + 0xb0]
call fcn.004bace0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx]
push ecx
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [eax + 0x3c]
push ecx
mov ecx, ebx
call edx
or dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + 0x19c]
add eax, 1
shr edx, 1
cmp eax, edx
mov dword [esp + 0x24], eax
mov esi, ecx
jb 0x49d2f0
cmp dword [esi + 0x25c], 0
je 0x49d557
test dword [esp + 0x38], 0xfffffff6
jne 0x49d557
xor al, al
jmp 0x49d559
cmp byte [ebx + 0x55], 0
jne 0x49d467
cmp byte [ebx + 0xed], 0
je 0x49d364
cmp byte [ebx + 0x213], 0
jne 0x49d364
mov esi, dword [ebx + 0x244]
test esi, esi
je 0x49d364
mov eax, dword [esi]
fxch st(1)
mov eax, dword [eax + 0x20]
fst dword [esp + 0x88]
fst dword [esp + 0x98]
lea ecx, [esp + 0x88]
fstp dword [esp + 0xa8]
push ecx
lea edx, [esp + 0x7c]
fst dword [esp + 0x90]
push edx
fst dword [esp + 0x98]
mov ecx, esi
fst dword [esp + 0x9c]
mov byte [esp + 0xb4], 1
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fstp dword [esp + 0xac]
call eax
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x80]
jge 0x49d531
mov edx, dword [esp + 0x7c]
cmp edx, dword [esp + 0x84]
jge 0x49d531
fld1
mov byte [esp + 0x64], 1
fst dword [esp + 0x40]
lea esi, [esp + 0x40]
fldz
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fstp dword [esp + 0x5c]
fst dword [esp + 0x50]
fstp dword [esp + 0x60]
jmp 0x49d3ab
test byte [esi + 8], 1
je 0x49d53d
push esi
call fcn.0049be90
add esi, 0x1dc
mov ecx, 0xa
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x40]
jmp 0x49d3ab
mov al, 1
cmp byte [esi + 0x20f], 0
mov byte [esi + 0x261], al
je 0x49d5f7
mov eax, dword [ebp + 0x10]
lea edx, [esi + 0x188]
lea ecx, [esp + 0x78]
call fcn.004b9be0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x28]
shr eax, 1
cmp edx, eax
mov dword [esp + 0x24], edx
jae 0x49d5fe
shl edx, 4
mov eax, dword [edi]
mov ebx, dword [esp + 0x78]
mov ecx, dword [eax + edx]
add eax, edx
cmp ecx, ebx
jge 0x49d5a6
mov ecx, ebx
mov ebx, dword [esp + 0x7c]
mov dword [eax], ecx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jge 0x49d5b5
mov ecx, ebx
mov ebx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x49d5c8
mov ecx, ebx
mov ebx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jle 0x49d5db
mov ecx, ebx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 4]
add eax, 1
shr ecx, 1
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x49d595
jmp 0x49d5fa
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x28]
cmp byte [ebp + 0x18], 0
jne 0x49d60f
mov eax, dword [esi]
push edx
mov edx, dword [eax + 0x1c]
push edi
mov ecx, esi
call edx
mov esi, dword [esp + 0x68]
test esi, esi
je 0x49d632
call fcn.00495a20
fsub qword [esp + 0x70]
sub esp, 8
mov eax, 1
mov ecx, esi
fstp qword [esp]
call fcn.004d3ce0
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14