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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x507968
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
cmp eax, esi
jle 0x489a9d
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
cmp ecx, edx
jle 0x489a9d
mov edi, eax
sub edi, esi
mov esi, dword [ebp + 0x68]
push esi
mov esi, dword [ebp + 0x60]
push esi
mov esi, dword [ebp + 0x54]
push esi
mov esi, dword [ebp + 0x4c]
push esi
mov esi, dword [ebp + 0x48]
push esi
mov esi, dword [ebp + 0x44]
push esi
mov esi, dword [ebp + 0x40]
push esi
mov esi, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov ebx, ecx
push esi
sub ebx, edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x98]
push eax
lea edx, [esp + 0x7c]
call fcn.004892e0
cmp byte [ebp + 0x2c], 0
mov ecx, dword [esp + 0x18]
je 0x4895d3
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ebx
push edi
push ecx
push edx
jmp 0x4895e5
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
call edx
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push edi
push eax
push ecx
mov ecx, esi
call fcn.004a6d9b
cmp byte [ebp + 0x24], 0
je 0x489633
cmp byte [ebp + 0x28], 0
mov ecx, dword [esp + 0x18]
je 0x489610
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ebx
push edi
push ecx
push edx
jmp 0x48962c
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push ebx
sub ecx, eax
add ecx, 4
push ecx
push edx
push eax
mov ecx, esi
call fcn.004a6d9b
mov eax, dword [ebp + 0x30]
test eax, eax
jl 0x489686
cmp byte [ebp + 0x60], 0
mov ebx, dword [ebp + 0x10]
je 0x48964e
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea ebx, [ecx + ebx + 0x13]
mov eax, dword [ebp + 0x34]
sub eax, 0
je 0x4896b4
sub eax, 1
jne 0x489686
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
cmp byte [ebp + 0x3c], 0
mov ecx, dword [ebp + 0x1c]
push eax
je 0x489677
push 2
add ecx, 0xfffffffe
jmp 0x48967c
add ecx, 0xffffffff
push 1
push edi
push ecx
push ebx
mov ecx, esi
call fcn.004a6d9b
cmp byte [ebp + 0x60], 0
je 0x489763
cmp dword [ebp + 0x64], 0
je 0x489763
cmp byte [ebp + 0x28], 0
je 0x4896cd
cmp byte [ebp + 0x24], 0
je 0x4896cd
mov edi, dword [ebp + 0x48]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
jmp 0x4896da
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
cmp byte [ebp + 0x38], 0
mov ecx, dword [ebp + 0x14]
push eax
je 0x48967a
push 2
jmp 0x48967c
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov edi, dword [ebp + 0x48]
mov ebx, eax
sar ebx, 0x10
cmp byte [ebp + 0x28], 0
je 0x4896f1
cmp byte [ebp + 0x24], 0
je 0x4896f1
mov edx, dword [edi]
mov ecx, edi
jmp 0x4896f6
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
cmp byte [ebp + 0x28], 0
mov byte [esp + 0x17], ah
je 0x489711
cmp byte [ebp + 0x24], 0
je 0x489711
mov edx, dword [edi]
mov ecx, edi
jmp 0x489716
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
cmp dword [ebp + 0x64], 1
mov edx, str.TreeOpen
je 0x48972b
mov edx, str.TreeClosed
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x1c]
mov edi, dword [ecx]
movzx ebx, bl
push ebx
movzx ebx, byte [esp + 0x1b]
push ebx
movzx eax, al
push eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
add edx, 0xffffffff
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
add edx, 1
push edx
mov edx, dword [edi + 0x4c]
push eax
push esi
call edx
cmp byte [ebp + 0x54], 0
mov ebx, dword [esp + 0x18]
je 0x489907
mov edi, dword [ebp + 0x58]
test edi, edi
je 0x489907
cmp byte [ebp + 0x28], 0
je 0x48978b
cmp byte [ebp + 0x24], 0
mov ecx, dword [ebp + 0x48]
jne 0x48978e
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.004a6d9b
cmp byte [ebp + 0x28], 0
je 0x4897c8
cmp byte [ebp + 0x24], 0
je 0x4897c8
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
jmp 0x4897d8
cmp byte [ebp + 0x2c], 0
mov eax, dword [ebx]
je 0x4897d5
mov edx, dword [eax + 0x58]
jmp 0x4897d8
mov edx, dword [eax + 0x3c]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
sub ecx, 4
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
sub edx, 4
push edx
add eax, 2
add ecx, 2
push eax
push ecx
mov ecx, esi
call fcn.004a6d9b
cmp edi, 3
jne 0x489857
cmp byte [ebp + 0x28], 0
je 0x48981c
cmp byte [ebp + 0x24], 0
mov ecx, dword [ebp + 0x48]
jne 0x48981f
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
sub ecx, 8
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
sub edx, 8
push edx
add eax, 4
add ecx, 4
push eax
push ecx
mov ecx, esi
call fcn.004a6d9b
jmp 0x489907
cmp edi, 2
jne 0x489907
cmp byte [ebp + 0x28], 0
je 0x48986f
cmp byte [ebp + 0x24], 0
mov ecx, dword [ebp + 0x48]
jne 0x489872
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ebx, eax
sar ebx, 0x10
cmp byte [ebp + 0x28], 0
je 0x489898
cmp byte [ebp + 0x24], 0
je 0x489898
mov edi, dword [ebp + 0x48]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
jmp 0x4898a5
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov edi, dword [ebp + 0x48]
cmp byte [ebp + 0x28], 0
mov byte [esp + 0x17], ah
je 0x4898bb
cmp byte [ebp + 0x24], 0
je 0x4898bb
mov eax, dword [edi]
mov ecx, edi
jmp 0x4898c0
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
movzx eax, al
movzx edi, bl
push edi
movzx edi, byte [esp + 0x1b]
mov edx, dword [edx + 0x4c]
push edi
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffffd
push 0x53073c
push eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffffd
push eax
mov eax, dword [esp + 0x40]
add eax, 3
push eax
mov eax, dword [esp + 0x40]
add eax, 3
push eax
push esi
call edx
cmp byte [ebp + 0x4c], 0
je 0x489977
mov edi, dword [ebp + 0x50]
test edi, edi
je 0x489977
mov eax, dword [edi]
mov edx, dword [eax + 0xa0]
mov ecx, edi
call edx
test al, al
mov eax, dword [esp + 0x38]
push 1
je 0x489954
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push 0
push 0
push edi
mov edi, dword [esp + 0x50]
sub edi, eax
push edi
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
push edi
push eax
mov eax, dword [esp + 0x50]
push eax
call edx
jmp 0x489977
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x94]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
push esi
mov ecx, edi
call edx
push 1
mov ecx, esi
call fcn.004a60f5
mov bl, byte [ebp + 0x24]
test bl, bl
mov dword [esp + 0x1c], eax
je 0x489999
mov edi, dword [ebp + 0x48]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
jmp 0x4899a6
mov ecx, dword [ebp + 0x44]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov edi, dword [ebp + 0x48]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
test bl, bl
mov dword [esp + 0x20], eax
mov eax, edi
jne 0x4899bd
mov eax, dword [ebp + 0x44]
mov edi, dword [esi]
push 0
push 0x54e434
push 0x54e418
push 0
push eax
add edi, 0x28
call fcn.004b967b
mov edx, dword [edi]
add esp, 0x14
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [ebp + 0x20]
test eax, eax
mov edi, 0x8824
je 0x4899fe
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 0x8825
mov edi, ecx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x6c], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x74], edx
call fcn.0043e3f0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push edi
lea edi, [esp + 0x68]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489a79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004a60f5
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0x30]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x64