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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c533f
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4e5d60]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x15c], ebx
mov edi, 1
mov dword [ebp - 4], edi
call fcn.004990cf
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409663
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
mov ecx, dword [ebp + 8]
push 0x4cbc38
push ecx
lea edx, [ebp - 0x140]
push edx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x140], ebx
call fcn.004a6ee5
add esp, 0xc
test eax, eax
jne 0x409dc8
mov eax, dword [ebp - 0x140]
cmp eax, ebx
je 0x409dc8
push 2
push ebx
push eax
call fcn.004a6fc2
mov eax, dword [ebp - 0x140]
add esp, 0xc
push eax
call fcn.004a71e4
mov ecx, dword [ebp - 0x140]
add esp, 4
push ebx
push ebx
push ecx
mov esi, eax
call fcn.004a6fc2
add esp, 0xc
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
lea eax, [esi + 2]
mov byte [ebp - 4], 3
cmp eax, ebx
ja 0x4096ff
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e6e0
jmp 0x409708
push ebx
lea edi, [ebp - 0x34]
call fcn.0040bad0
cmp dword [ebp - 0x20], ebx
ja 0x409712
call fcn.004c0b0c
mov eax, dword [ebp - 0x30]
mov edi, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x409722
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x140]
push edx
push esi
push 1
push eax
call fcn.004a74f2
mov esi, eax
mov eax, dword [ebp - 0x140]
push eax
call fcn.004a7586
add esp, 0x14
mov dword [ebp - 0x140], ebx
cmp esi, ebx
jne 0x409764
push 0x4de414
lea ecx, [ebp - 0x190]
push ecx
mov dword [ebp - 0x190], ebx
call fcn.004aa00a
cmp dword [ebp - 0x20], ebx
ja 0x40976e
call fcn.004c0b0c
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x409779
lea eax, [ebp - 0x30]
cmp byte [eax], 0xef
jne 0x4097fa
cmp dword [ebp - 0x20], 1
ja 0x409789
call fcn.004c0b0c
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x409794
lea eax, [ebp - 0x30]
cmp byte [eax + 1], 0xbb
jne 0x4097fa
mov edi, 2
lea eax, [ebp - 0x34]
call fcn.0040b120
cmp byte [eax], 0xbf
jne 0x4097fa
lea edx, [ebp - 0x18c]
push edx
lea ebx, [ebp - 0x164]
lea edi, [ebp - 0x34]
call fcn.0040b0d0
call fcn.0040b950
mov esi, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [ebp - 0x158]
mov dword [ebp - 0x16c], eax
call fcn.0040b0d0
mov ecx, dword [ebp - 0x16c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push esi
push edx
push eax
lea ecx, [ebp - 0x170]
push ecx
mov edx, edi
push edx
call fcn.0040afb0
lea ecx, [ebp - 0x34]
lea esi, [ebp - 0x13c]
call fcn.0048b7f0
xor edi, edi
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
mov ebx, 0x4a
mov byte [ebp - 4], 5
cmp dword [ebp - 0x12c], ebx
jne 0x409d99
push str.roots
lea ecx, [ebp - 0x50]
call fcn.0040e6a0
lea eax, [ebp - 0x50]
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00401480
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.0040eb40
cmp dword [esi + 0x10], ebx
jne 0x409d87
push str.bookmark_bar
lea ecx, [ebp - 0x184]
call fcn.0040e6a0
lea eax, [ebp - 0x184]
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00401480
lea ecx, [ebp - 0x184]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.0040eb40
cmp dword [esi + 0x10], ebx
jne 0x409d87
push str.children
lea ecx, [ebp - 0x1c8]
call fcn.0040e6a0
lea eax, [ebp - 0x1c8]
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00401480
mov esi, eax
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x16c], esi
mov byte [ebp - 4], 5
call fcn.0040eb40
cmp dword [esi + 0x10], 0x4b
jne 0x409d87
or ebx, 0xffffffff
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x14c], edi
mov esi, dword [ebp - 0x16c]
mov ecx, dword [esi + 0x60]
sub ecx, dword [esi + 0x5c]
add esi, 0x50
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x409b2b
push edi
mov eax, esi
call fcn.0040b700
cmp dword [eax + 0x10], 0x4a
mov dword [ebp - 0x160], eax
jne 0x409b1a
cmp ebx, 0xffffffff
jne 0x409aa9
lea ecx, [ebp - 0x144]
call fcn.0040ec60
lea ecx, [ebp - 0x148]
call fcn.0040ec60
push 0x4cee0c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.0040e6a0
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x160]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.00401480
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 0xa
call fcn.0040eb40
mov ebx, 0x4c
cmp dword [esi + 0x10], ebx
jne 0x4099c7
lea edx, [ebp - 0x1ac]
mov ecx, esi
call fcn.00401640
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x4099a9
mov eax, dword [eax + 4]
jmp 0x4099ac
add eax, 4
push eax
lea ecx, [ebp - 0x144]
call fcn.0040f2c0
lea esi, [ebp - 0x1ac]
mov byte [ebp - 4], 0xa
call fcn.0040b1c0
push str.name
lea ecx, [ebp - 0x50]
call fcn.0040e6a0
lea eax, [ebp - 0x50]
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00401480
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 0xa
call fcn.0040eb40
cmp dword [esi + 0x10], ebx
jne 0x409a2f
lea edx, [ebp - 0x1ac]
mov ecx, esi
call fcn.00401640
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 8
jb 0x409a11
mov eax, dword [eax + 4]
jmp 0x409a14
add eax, 4
push eax
lea ecx, [ebp - 0x148]
call fcn.0040f2c0
lea esi, [ebp - 0x1ac]
mov byte [ebp - 4], 0xa
call fcn.0040b1c0
lea edi, [ebp - 0x148]
call fcn.0040ac00
lea edi, [ebp - 0x144]
call fcn.0040ac00
lea ecx, [ebp - 0x148]
push ecx
mov ecx, 0x4cee70
call fcn.0040a7c0
test eax, eax
je 0x409a6b
mov edx, edi
push edx
mov ecx, str.http:__home.vn__pk_campaignshfed
call fcn.0040a7c0
test eax, eax
jne 0x409a89
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
call fcn.0040ebc0
lea ecx, [ebp - 0x148]
call fcn.0040ed20
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 5
call fcn.0040ed20
mov ebx, dword [ebp - 0x154]
push 0x4cee18
lea ecx, [ebp - 0x1ac]
call fcn.0040e6a0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x1ac]
call fcn.00401480
lea ecx, [ebp - 0x1ac]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0040eb40
cmp dword [edi + 0x10], 0x4c
jne 0x409b1a
lea esi, [ebp - 0x50]
mov eax, edi
call fcn.00401610
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x409afb
lea eax, [ebp - 0x4c]
push eax
call fcn.004a7bc3
add esp, 4
cmp eax, dword [ebp - 0x188]
jle 0x409b12
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x50]
call fcn.0040eb40
inc dword [ebp - 0x14c]
mov edi, dword [ebp - 0x14c]
jmp 0x4098f1
cmp ebx, 0xffffffff
je 0x409ca7
mov eax, dword [ebp - 0x16c]
add eax, 0x50
push ebx
mov dword [ebp - 0x16c], eax
call fcn.0040b700
push eax
lea ecx, [ebp - 0xd4]
call fcn.00401130
push str.name
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x10
call fcn.0040e6a0
mov eax, 0x4cbe94
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.0040b150
lea edx, [ebp - 0x234]
push edx
mov ebx, eax
mov byte [ebp - 4], 0x12
call fcn.004012b0
mov esi, eax
lea eax, [ebp - 0xc0]
push eax
lea ebx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x13
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x12
call fcn.004013e0
lea esi, [ebp - 0x50]
call fcn.0040b1c0
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.0040eb40
push 0x4cee0c
lea ecx, [ebp - 0x1ac]
call fcn.0040e6a0
mov byte [ebp - 4], 0x14
mov eax, dword [0x4eb628]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x4d2f2c]
lea ecx, [ebp - 0x50]
call fcn.0040b150
lea edx, [ebp - 0x234]
push edx
mov ebx, eax
mov byte [ebp - 4], 0x15
call fcn.004012b0
mov esi, eax
lea eax, [ebp - 0xc0]
push eax
lea ebx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x16
call fcn.0040b1f0
mov edi, eax
mov eax, esi
call fcn.004015c0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x15
call fcn.004013e0
lea esi, [ebp - 0x50]
call fcn.0040b1c0
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.0040eb40
mov esi, dword [ebp - 0x16c]
push 0
mov eax, esi
call fcn.0040b700
mov ebx, eax
mov ecx, dword [ebp - 0x154]
push ecx
mov eax, esi
call fcn.0040b700
mov edi, eax
mov eax, ebx
call fcn.004015c0
cmp dword [ebp - 0x154], 0
jle 0x409c96
push 0
mov eax, esi
call fcn.0040b700
mov edi, eax
lea eax, [ebp - 0xd4]
call fcn.004015c0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.004013e0
jmp 0x409cbf
mov ecx, dword [ebp - 0x150]
push 0x4cf374
call fcn.0040f2c0
xor al, al
je 0x409d85
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x17c]
push eax
call fcn.0048b990
add esp, 8
lea ecx, [ebp - 0xcc]
push ecx
mov byte [ebp - 4], 0x17
call fcn.0048d670
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.0048d6f0
push 0x10
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp + 8]
push 0x4cbc6c
push ecx
call fcn.004a6e1f
add esp, 0xc
mov dword [ebp - 0x140], eax
test eax, eax
je 0x409d59
push 0
push 0
push eax
call fcn.004a6fc2
mov esi, dword [ebp - 0x3c]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x50]
call fcn.0040b120
mov edx, dword [ebp - 0x140]
push edx
push 1
push esi
push eax
call fcn.004a7783
mov eax, dword [ebp - 0x140]
push eax
call fcn.004a7586
add esp, 0x14
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x140], 0
call fcn.0040eb40
lea ecx, [ebp - 0xcc]
call fcn.00401730
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 5
call fcn.00492ec0
xor edi, edi
cmp dword [ebp - 0x54], 0x10
jb 0x409d99
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00498c5e
add esp, 4
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 3
call fcn.004013e0
cmp dword [ebp - 0x1c], 0x10
jb 0x409dc8
mov edx, dword [ebp - 0x30]
push edx
call fcn.00498c5e
add esp, 4
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a6859
mov esp, ebp
pop ebp
ret 4