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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x72f90d
mov eax, dword fs:[0]
push eax
sub esp, 0x140
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0x8b6078
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x8b607c]
cmp ecx, eax
jne 0x49f68b
inc dword [0x8b6078]
mov byte [esp + 0x30], 1
xor eax, eax
mov dword [esp + 0x158], eax
cmp byte [esp + 0x30], al
jne 0x49f5a1
cmp byte [ebp + 8], al
jne 0x49faca
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov byte [esp + 0xb4], 0
mov dword [esp + 0x9c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x158], 2
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x64], 0x8b60a8
mov byte [esp + 0x68], 0
call fcn.0040d4f7
mov esi, dword [0x8b6828]
push dword [esi + 0xa0]
add esi, 0x94
lea edi, [esp + 0x48]
call fcn.0053b609
mov esi, dword [0x8b6828]
mov eax, dword [esi + 0xa4]
add eax, dword [esi + 0xa0]
add esi, 0x94
push eax
lea edi, [esp + 0xcc]
call fcn.0053b609
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x49f652
cmp ebx, dword [esp + 0xcc]
je 0x49f657
call fcn.0054b876
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0xd0]
je 0x49f701
lea eax, [esp + 0x44]
call fcn.004a05e1
mov ecx, dword [esp + 0x18]
cmp dword [eax], ecx
je 0x49f6b7
lea edi, [esp + 0x11c]
lea esi, [esp + 0x44]
call fcn.004e81c9
jmp 0x49f61c
mov ecx, 0x8b6080
lock bts dword [ecx], 0x1f
jb 0x49f6ad
mov ecx, 0x8b607c
xchg dword [ecx], eax
mov dword [0x8b6078], 1
jmp 0x49f584
mov byte [esp + 0x30], 0
jmp 0x49f589
lea eax, [esp + 0x44]
mov byte [esp + 0x17], 1
call fcn.004a05e1
push 0xa
pop ecx
mov esi, eax
sub esp, 0xc
mov eax, esp
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
and dword [eax], 0
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [esp + 0x28], esp
lea eax, [esp + 0x140]
push eax
mov eax, dword [0x8b6828]
add eax, 0x94
push eax
call fcn.0049ff77
lea eax, [esp + 0x60]
call fcn.0040d1d9
cmp byte [esp + 0x17], 0
je 0x49f88a
cmp byte [esp + 0xb4], 0
mov eax, dword [esp + 0xa4]
je 0x49f757
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x54]
jmp 0x49f786
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x38]
call fcn.0049ffb1
mov edi, dword [esp + 0x18]
push dword [edi + 0x38]
add edi, 0x30
lea esi, [esp + 0x108]
call fcn.0042dad8
push dword [edi + 4]
lea esi, [esp + 0x78]
call fcn.0042dad8
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x108]
sub ecx, ebx
mov dword [esp + 0x20], ebx
sar ecx, 2
jmp 0x49f802
mov esi, dword [esp + 0x9c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [ebx + eax*4]
mov dword [esp + 0x1c], edx
mov edx, dword [edx]
mov edx, dword [edx + 4]
cmp edx, dword [esi + 4]
ja 0x49f800
jb 0x49f7f0
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
mov edx, dword [edx]
cmp edx, dword [esi]
jae 0x49f800
mov ebx, dword [esp + 0x1c]
or edx, 0xffffffff
sub edx, eax
add ebx, 4
add ecx, edx
jmp 0x49f802
mov ecx, eax
test ecx, ecx
jg 0x49f7c3
mov eax, dword [esp + 0x74]
push dword [edi + 8]
lea esi, [esp + 0x90]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebx
call fcn.0042dad8
mov eax, dword [esp + 0x74]
test eax, eax
je 0x49f838
cmp eax, dword [esp + 0x8c]
je 0x49f83d
call fcn.0054b876
cmp ebx, dword [esp + 0x90]
je 0x49f5e5
lea esi, [esp + 0x84]
call fcn.004b0a79
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x49f872
lea esi, [eax + 8]
call fcn.00432cd1
push dword [esp + 0x1c]
call fcn.005416e5
pop ecx
lea eax, [ebx + 4]
push eax
mov eax, dword [edi + 8]
mov edx, ebx
call fcn.00433de8
add dword [edi + 8], 0xfffffffc
pop ecx
jmp 0x49f5e5
cmp dword [esp + 0x38], 0
je 0x49f9fd
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 4
je 0x49f9fd
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], 0x8b60a8
mov byte [esp + 0x84], 0
call fcn.0040d4f7
mov byte [esp + 0x158], 3
mov esi, dword [0x8b6828]
push dword [esi + 0x8c]
add esi, 0x80
lea edi, [esp + 0x6c]
call fcn.0053b609
mov esi, dword [0x8b6828]
mov eax, dword [esi + 0x90]
add eax, dword [esi + 0x8c]
add esi, 0x80
push eax
lea edi, [esp + 0xec]
call fcn.0053b609
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x49f91c
cmp esi, dword [esp + 0xec]
je 0x49f921
call fcn.0054b876
mov edi, dword [esp + 0x70]
cmp edi, dword [esp + 0xf0]
je 0x49f9be
lea eax, [esp + 0x68]
call fcn.004a05e1
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp dword [ebx], eax
je 0x49f957
lea edi, [esp + 0x128]
lea esi, [esp + 0x68]
call fcn.004e81c9
jmp 0x49f8e6
sub esp, 0xc
mov eax, esp
and dword [eax], 0
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [esp + 0x28], esp
lea eax, [esp + 0x14c]
push eax
mov eax, dword [0x8b6828]
add eax, 0x80
push eax
call fcn.0049ff77
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x10c], eax
mov eax, dword [ebx + 0x14]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x110], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x114], eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x38]
movsd dword es:[edi], dword [esi]
call fcn.0049ffb1
jmp 0x49f8e6
lea eax, [esp + 0x7c]
mov byte [esp + 0x158], 2
call fcn.0040d1d9
mov esi, dword [esp + 0x18]
lea eax, [esi + 0x30]
call fcn.0049ff2b
lea eax, [esi + 0x40]
push eax
call fcn.0045ca47
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x34]
push edx
push dword [esi + 8]
mov byte [esi + 0x2c], 0
push dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49fa01
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x54], 0
je 0x49fa22
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 4
je 0x49fa22
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
call dword [eax + 8]
and dword [esp + 0x18], 0
lea edi, [esi + 0x30]
push dword [edi + 4]
lea esi, [esp + 0x28]
call fcn.0042dad8
mov ebx, dword [esp + 0x24]
push dword [edi + 8]
lea esi, [esp + 0xc4]
call fcn.0042dad8
test ebx, ebx
je 0x49fa56
cmp ebx, dword [esp + 0xc0]
je 0x49fa5b
call fcn.0054b876
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0xc4]
je 0x49fa9b
lea esi, [esp + 0x24]
call fcn.004b0a79
mov eax, dword [eax]
cmp byte [eax + 0x18], 0
je 0x49fa7d
inc dword [esp + 0x18]
test ebx, ebx
jne 0x49fa86
call fcn.0054b876
mov eax, dword [esp + 0x28]
cmp eax, dword [ebx + 8]
jb 0x49fa94
call fcn.0054b876
add dword [esp + 0x28], 4
jmp 0x49fa3a
cmp dword [esp + 0x18], 0x64
jb 0x49fab8
mov eax, dword [0x8b6824]
test eax, eax
je 0x49fab8
cmp dword [eax + 8], 0
jne 0x49fab8
mov dword [eax + 8], 0x200000
lea esi, [esp + 0x50]
call fcn.00519c69
lea esi, [esp + 0x34]
call fcn.00519c69
or dword [esp + 0x158], 0xffffffff
lea eax, [esp + 0x2c]
call fcn.0040d1d9
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4