Function at 0x406590
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c54fc
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e5d60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x1a8], ebx
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4065f6
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4cbc38
mov eax, 1
lea ecx, [ebp - 0x13c]
push edi
mov dword [ebp - 4], eax
push ecx
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x13c], ebx
call fcn.004a6ee5
add esp, 0xc
test eax, eax
jne 0x406fd6
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x406fd6
push 2
xor ebx, ebx
push ebx
push eax
call fcn.004a6fc2
mov edx, dword [ebp - 0x13c]
add esp, 0xc
push edx
call fcn.004a71e4
add esp, 4
push ebx
mov esi, eax
mov eax, dword [ebp - 0x13c]
push ebx
push eax
call fcn.004a6fc2
add esp, 0xc
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [esi + 2]
mov byte [ebp - 4], 2
cmp eax, ebx
ja 0x406698
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.0040e6e0
jmp 0x4066a1
push ebx
lea edi, [ebp - 0x30]
call fcn.0040bad0
cmp dword [ebp - 0x1c], ebx
ja 0x4066ab
call fcn.004c0b0c
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4066bb
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 1
push eax
call fcn.004a74f2
mov edx, dword [ebp - 0x13c]
push edx
mov esi, eax
call fcn.004a7586
add esp, 0x14
mov dword [ebp - 0x13c], ebx
cmp esi, ebx
jne 0x4066fd
push 0x4de414
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], ebx
call fcn.004aa00a
cmp dword [ebp - 0x1c], ebx
ja 0x406707
call fcn.004c0b0c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x406712
lea eax, [ebp - 0x2c]
cmp byte [eax], 0xef
jne 0x406793
cmp dword [ebp - 0x1c], 1
ja 0x406722
call fcn.004c0b0c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40672d
lea eax, [ebp - 0x2c]
cmp byte [eax + 1], 0xbb
jne 0x406793
mov edi, 2
lea eax, [ebp - 0x30]
call fcn.0040b120
cmp byte [eax], 0xbf
jne 0x406793
lea ecx, [ebp - 0x180]
push ecx
lea ebx, [ebp - 0x154]
lea edi, [ebp - 0x30]
call fcn.0040b0d0
call fcn.0040b950
mov edx, dword [eax + 4]
mov esi, dword [eax]
lea ebx, [ebp - 0x178]
mov dword [ebp - 0x1b0], edx
call fcn.0040b0d0
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push esi
push edx
push eax
lea ecx, [ebp - 0x1b4]
push ecx
mov edx, edi
push edx
call fcn.0040afb0
lea ecx, [ebp - 0x30]
lea esi, [ebp - 0x138]
call fcn.0048b7f0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov edi, 0x4a
mov byte [ebp - 4], 4
cmp dword [ebp - 0x128], edi
jne 0x406fa3
push str.roots
lea ecx, [ebp - 0x4c]
call fcn.0040e6a0
lea eax, [ebp - 0x4c]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00401480
lea ecx, [ebp - 0x4c]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0040eb40
cmp dword [esi + 0x10], edi
jne 0x406f91
push str.bookmark_bar
lea ecx, [ebp - 0x1c8]
call fcn.0040e6a0
lea eax, [ebp - 0x1c8]
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00401480
lea ecx, [ebp - 0x1c8]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0040eb40
cmp dword [esi + 0x10], edi
jne 0x406f91
push str.children
lea ecx, [ebp - 0x1e4]
call fcn.0040e6a0
lea eax, [ebp - 0x1e4]
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00401480
mov ebx, eax
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 0x1b0], ebx
mov byte [ebp - 4], 4
call fcn.0040eb40
cmp dword [ebx + 0x10], 0x4b
jne 0x406f91
xor edi, edi
mov dword [ebp - 0x140], 0xffffffff
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x174], edi
nop
mov ecx, dword [ebx + 0x60]
sub ecx, dword [ebx + 0x5c]
lea esi, [ebx + 0x50]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x406b02
push edi
mov eax, esi
call fcn.0040b700
cmp dword [eax + 0x10], 0x4a
mov dword [ebp - 0x17c], eax
jne 0x406af1
cmp dword [ebp - 0x140], 0xffffffff
jne 0x406a80
lea ecx, [ebp - 0x144]
call fcn.0040ec60
lea ecx, [ebp - 0x14c]
call fcn.0040ec60
push 0x4cee0c
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 9
call fcn.0040e6a0
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x17c]
lea eax, [ebp - 0x170]
mov ecx, edi
call fcn.00401480
lea ecx, [ebp - 0x170]
mov esi, eax
mov byte [ebp - 4], 9
call fcn.0040eb40
mov ebx, 0x4c
cmp dword [esi + 0x10], ebx
jne 0x40696d
lea edx, [ebp - 0x1a0]
mov ecx, esi
call fcn.00401640
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 8
jb 0x40694f
mov eax, dword [eax + 4]
jmp 0x406952
add eax, 4
push eax
lea ecx, [ebp - 0x144]
call fcn.0040f2c0
lea esi, [ebp - 0x1a0]
mov byte [ebp - 4], 9
call fcn.0040b1c0
push str.name
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
lea eax, [ebp - 0x170]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00401480
lea ecx, [ebp - 0x170]
mov esi, eax
mov byte [ebp - 4], 9
call fcn.0040eb40
cmp dword [esi + 0x10], ebx
jne 0x4069de
lea edx, [ebp - 0x1a0]
mov ecx, esi
call fcn.00401640
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x18], 8
jb 0x4069c0
mov eax, dword [eax + 4]
jmp 0x4069c3
add eax, 4
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040f2c0
lea esi, [ebp - 0x1a0]
mov byte [ebp - 4], 9
call fcn.0040b1c0
lea edi, [ebp - 0x14c]
call fcn.0040ac00
lea edi, [ebp - 0x144]
call fcn.0040ac00
mov esi, dword [ebp - 0x14c]
cmp dword [esi - 0xc], 0
jl 0x406a1b
push str.home.vn
push esi
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x406a1b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x406a42
mov esi, dword [ebp - 0x144]
cmp dword [esi - 0xc], 0
jl 0x406a60
push str.home.vn
push esi
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x406a60
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406a60
mov ecx, dword [ebp - 0x174]
lea edx, [ebp - 0x144]
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp - 0x148]
push edx
call fcn.0040ebc0
lea ecx, [ebp - 0x14c]
call fcn.0040ed20
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 4
call fcn.0040ed20
mov ebx, dword [ebp - 0x1b0]
push 0x4cee18
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x17c]
lea eax, [ebp - 0x170]
call fcn.00401480
lea ecx, [ebp - 0x170]
mov edi, eax
mov byte [ebp - 4], 4
call fcn.0040eb40
cmp dword [edi + 0x10], 0x4c
jne 0x406af1
lea esi, [ebp - 0x4c]
mov eax, edi
call fcn.00401610
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x406ad2
lea eax, [ebp - 0x48]
push eax
call fcn.004a7bc3
add esp, 4
cmp eax, dword [ebp - 0x150]
jle 0x406ae9
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x4c]
call fcn.0040eb40
inc dword [ebp - 0x174]
mov edi, dword [ebp - 0x174]
jmp 0x406890
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x140]
inc esi
cmp eax, 0xffffffff
je 0x406b89
test eax, eax
jle 0x406eb0
lea esi, [ebx + 0x50]
push 0
mov eax, esi
call fcn.0040b700
push eax
lea ecx, [ebp - 0xd0]
call fcn.00401130
mov eax, dword [ebp - 0x140]
push eax
mov eax, esi
mov byte [ebp - 4], 0xf
call fcn.0040b700
mov ebx, eax
push 0
mov eax, esi
call fcn.0040b700
mov edi, eax
mov eax, ebx
call fcn.004015c0
mov ecx, dword [ebp - 0x140]
push ecx
mov eax, esi
call fcn.0040b700
mov edi, eax
lea eax, [ebp - 0xd0]
call fcn.004015c0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.004013e0
jmp 0x406ec8
lea ecx, [ebp - 0x150]
call fcn.0040ec60
push esi
lea edx, [ebp - 0x150]
push 0x4cf36c
push edx
mov byte [ebp - 4], 0x10
call fcn.0040e520
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
call fcn.004010c0
xor ecx, ecx
mov byte [ebp - 4], 0x11
mov word [ebp - 0xd0], cx
push str.date_added
lea ecx, [ebp - 0x170]
mov dword [ebp - 0xc0], 0x4a
call fcn.0040e6a0
push str.13051953757897700
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x12
call fcn.0040e6a0
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 0x13
call fcn.00401200
mov esi, eax
lea eax, [ebp - 0xbc]
push eax
lea ebx, [ebp - 0x170]
mov byte [ebp - 4], 0x14
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x13
call fcn.004013e0
lea ecx, [ebp - 0x1a0]
call fcn.0040eb40
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.0040eb40
push 0x4cee18
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x1a0]
call fcn.0040b150
lea ecx, [ebp - 0x250]
push ecx
mov ebx, eax
mov byte [ebp - 4], 0x16
call fcn.004012b0
mov esi, eax
lea edx, [ebp - 0xbc]
push edx
lea ebx, [ebp - 0x170]
mov byte [ebp - 4], 0x17
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x16
call fcn.004013e0
lea esi, [ebp - 0x1a0]
call fcn.0040b1c0
mov byte [ebp - 4], 0x11
mov ecx, ebx
call fcn.0040eb40
push str.name
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
mov eax, 0x4cbe94
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x18
call fcn.0040b150
lea ecx, [ebp - 0x250]
push ecx
mov ebx, eax
mov byte [ebp - 4], 0x19
call fcn.004012b0
mov esi, eax
lea edx, [ebp - 0xbc]
push edx
lea ebx, [ebp - 0x170]
mov byte [ebp - 4], 0x1a
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x19
call fcn.004013e0
lea esi, [ebp - 0x1a0]
call fcn.0040b1c0
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.0040eb40
push str.type
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
push 0x4cee0c
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x1b
call fcn.0040e6a0
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 0x1c
call fcn.00401200
mov esi, eax
lea ecx, [ebp - 0xbc]
push ecx
lea ebx, [ebp - 0x170]
mov byte [ebp - 4], 0x1d
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x1c
call fcn.004013e0
lea ecx, [ebp - 0x1a0]
call fcn.0040eb40
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.0040eb40
push 0x4cee0c
lea ecx, [ebp - 0x170]
call fcn.0040e6a0
mov byte [ebp - 4], 0x1e
mov eax, dword [0x4eb628]
lea edx, [eax + eax*4]
mov eax, dword [edx*8 + 0x4d2f2c]
lea ecx, [ebp - 0x1a0]
call fcn.0040b150
lea ecx, [ebp - 0x250]
push ecx
mov ebx, eax
mov byte [ebp - 4], 0x1f
call fcn.004012b0
mov esi, eax
lea edx, [ebp - 0xbc]
push edx
lea ebx, [ebp - 0x170]
mov byte [ebp - 4], 0x20
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x1f
call fcn.004013e0
lea esi, [ebp - 0x1a0]
call fcn.0040b1c0
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.0040eb40
mov edi, dword [ebp - 0x1b0]
add edi, 0x50
lea esi, [ebp - 0x1b4]
call fcn.0048c1c0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x180]
push ecx
mov eax, edi
call fcn.0040b7a0
mov eax, dword [0x4eb628]
mov ecx, dword [ebp - 0x148]
lea edx, [eax + eax*4]
mov eax, dword [edx*8 + 0x4d2f2c]
push eax
call fcn.0040f2c0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x10
call fcn.004013e0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 4
call fcn.0040ed20
jmp 0x406ec8
mov ecx, dword [ebp - 0x148]
push 0x4cf374
call fcn.0040f2c0
xor al, al
je 0x406f91
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.0048b990
add esp, 8
lea edx, [ebp - 0xc8]
push edx
mov byte [ebp - 4], 0x21
call fcn.0048d670
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x22
call fcn.0048d6f0
mov edx, dword [ebp - 0x1a4]
push 0x10
push 0x4cbc6c
push edx
mov byte [ebp - 4], 0x23
call fcn.004a6e1f
add esp, 0xc
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x406f65
push 0
push 0
push eax
call fcn.004a6fc2
mov esi, dword [ebp - 0x38]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x4c]
call fcn.0040b120
mov ecx, dword [ebp - 0x13c]
push ecx
push 1
push esi
push eax
call fcn.004a7783
mov edx, dword [ebp - 0x13c]
push edx
call fcn.004a7586
add esp, 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x13c], 0
call fcn.0040eb40
lea ecx, [ebp - 0xc8]
call fcn.00401730
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 4
call fcn.00492ec0
cmp dword [ebp - 0x50], 0x10
jb 0x406fa3
mov eax, dword [ebp - 0x64]
push eax
call fcn.00498c5e
add esp, 4
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 2
call fcn.004013e0
cmp dword [ebp - 0x18], 0x10
jb 0x406fd6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00498c5e
add esp, 4
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6859
mov esp, ebp
pop ebp
ret