Function at 0x4780c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x564690]
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
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 8]
push str._blocklist.xml
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x6c], edi
mov byte [ebp - 0x31], 0
call fcn.004029e0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], 0
call fcn.0040d3f0
add esp, 0x10
test al, al
jne 0x478150
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478d6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x478d6f
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040e0c0
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0040d2b0
mov ecx, dword [eax]
xor eax, eax
add esp, 0xc
test ecx, ecx
setne al
test eax, eax
jne 0x478184
push 0x80004005
call fcn.00402ec0
mov eax, dword [ebp - 0x30]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4781ad
test dx, dx
je 0x4781a9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4781ad
add eax, 4
add ecx, 4
test dx, dx
jne 0x478187
xor eax, eax
jmp 0x4781b2
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x44]
test eax, eax
sete byte [ebp - 0x32]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4781d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x32], 0
je 0x4782e0
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov eax, str.bloc
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x478222
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x478231
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00407600
jmp 0x478231
push 4
push str.bloc
lea ecx, [ebp - 0x40]
call fcn.00409890
push str.k_list_xml_error_read_file
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.004029e0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00409200
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478276
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4782b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x478d6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x478d6f
mov ecx, dword [edi + 0xa8]
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0
test ecx, ecx
je 0x47863b
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], 0
jl 0x47863e
push ecx
push eax
call fcn.004e5d72
mov edi, eax
add esp, 8
test edi, edi
je 0x47863b
mov eax, dword [ebp - 0x30]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x47863e
test edi, edi
js 0x478353
cmp edi, dword [eax - 0xc]
jg 0x478353
lea eax, [eax + edi*2]
push str._versionRange
push eax
call fcn.004e5d72
mov ecx, eax
mov eax, dword [ebp - 0x30]
add esp, 8
test ecx, ecx
je 0x478353
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x47835a
mov dword [ebp - 0x3c], 0xffffffff
test edi, edi
js 0x478383
cmp edi, dword [eax - 0xc]
jg 0x478383
lea eax, [eax + edi*2]
push str.__versionRange_
push eax
call fcn.004e5d72
mov esi, eax
mov eax, dword [ebp - 0x30]
add esp, 8
test esi, esi
je 0x478383
sub esi, eax
sar esi, 1
jmp 0x478386
or esi, 0xffffffff
test edi, edi
js 0x4783af
cmp edi, dword [eax - 0xc]
jg 0x4783af
lea eax, [eax + edi*2]
push str.__emItem_
push eax
call fcn.004e5d72
mov ecx, eax
mov eax, dword [ebp - 0x30]
add esp, 8
test ecx, ecx
je 0x4783af
sub ecx, eax
sar ecx, 1
jmp 0x4783b2
or ecx, 0xffffffff
mov dword [ebp - 0x38], ecx
cmp esi, 0xffffffff
je 0x4783be
cmp esi, ecx
jle 0x4783e8
test edi, edi
js 0x4783e5
cmp edi, dword [eax - 0xc]
jg 0x4783e5
lea eax, [eax + edi*2]
push 0x523b58
push eax
call fcn.004e5d72
mov esi, eax
add esp, 8
test esi, esi
je 0x4783e5
sub esi, dword [ebp - 0x30]
sar esi, 1
jmp 0x4783e8
or esi, 0xffffffff
mov edi, dword [ebp - 0x3c]
cmp edi, 0xffffffff
je 0x47850c
cmp esi, 0xffffffff
je 0x47850c
cmp esi, dword [ebp - 0x38]
jge 0x47850c
mov eax, dword [0x565ae0]
imul eax, eax
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xd
jne 0x478426
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x565ae0], eax
push str.__versionRange_
lea ecx, [ebp - 0x38]
call fcn.00401b70
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
mov eax, dword [eax - 0xc]
sub eax, edi
add eax, esi
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 5
call fcn.004076d0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.0040d160
mov esi, dword [ebp - 0x3c]
cmp dword [esi - 0xc], 0
jl 0x4784c5
push str.severity_1_
push esi
call fcn.004e5d72
add esp, 8
test eax, eax
je 0x4784c5
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4784c5
cmp dword [esi - 0xc], 0
jl 0x4784c1
push str.severity_2_
push esi
call fcn.004e5d72
add esp, 8
test eax, eax
je 0x4784a0
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4784c5
cmp dword [esi - 0xc], 0
jl 0x4784c1
push str.severity_3_
push esi
call fcn.004e5d72
add esp, 8
test eax, eax
je 0x4784c1
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4784c5
mov byte [ebp - 0x32], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4784e2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478502
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x32], 0
jne 0x47863b
mov ecx, dword [ebp - 0x4c]
add ecx, 0xa8
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
cdq
sub eax, edx
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00408340
mov edi, eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.0048c710
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 8
mov ecx, dword [eax + 0xa8]
mov eax, dword [ecx - 0xc]
mov ecx, dword [ebp - 0x4c]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ecx + 0xa8]
call fcn.004074d0
push esi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 9
call fcn.00402920
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402920
add esp, 0x18
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4785a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4785c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4785e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
push dword [ecx + 0xa8]
lea ecx, [ebp - 0x30]
call fcn.004078e0
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47863b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
test ecx, ecx
js 0x478bdf
cmp ecx, dword [eax - 0xc]
jg 0x478bdf
lea eax, [eax + ecx*2]
push str._id__
push eax
call fcn.004e5d72
mov edi, eax
add esp, 8
test edi, edi
je 0x478bdc
mov eax, dword [ebp - 0x30]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
je 0x478bdf
test edi, edi
js 0x478bdf
cmp edi, dword [eax - 0xc]
jg 0x478bdf
lea eax, [eax + edi*2]
push 0x523bc4
push eax
call fcn.004e5d72
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x478bdc
mov eax, dword [ebp - 0x30]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x3c], ecx
cmp ecx, 0xffffffff
je 0x478bdf
mov esi, dword [0x565ae0]
mov dword [ebp - 0x70], ecx
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0xd
jne 0x478766
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x4786e3
mov dword [0x565ae0], esi
mov eax, dword [ebp - 0x3c]
sub eax, edi
sub eax, 5
push eax
lea eax, [edi + 5]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.004076d0
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0x10
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x478b67
jns 0x47879d
push 0x80070057
call fcn.00402ec0
cmp word [eax], 0x2f
jne 0x478b67
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x4787ce
cmp ecx, dword [esi]
jne 0x4787ce
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x47880b
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x4787e2
call fcn.00409c50
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5c88
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x64], esi
push 0x523bcc
push 0x523bd4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call fcn.004078e0
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, 0x518d18
mov byte [ebp - 4], 0x12
test eax, 0xffff0000
jne 0x478868
movzx edi, ax
push 0
push edi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x478877
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.00407600
jmp 0x478877
push 1
push 0x518d18
lea ecx, [ebp - 0x38]
call fcn.00409890
push 0x523bd8
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0x13
call fcn.004029e0
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x40]
push 0x523bd8
mov byte [ebp - 4], 0x14
call fcn.004078e0
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4788c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4788e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x517c94
push 0x517c94
lea ecx, [ebp - 0x40]
call fcn.00482f20
mov ecx, eax
call fcn.00482db0
push 1
push dword [ebp - 0x40]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
call fcn.004763a0
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x4c]
add edi, 0xa8
xor eax, eax
mov edx, dword [edi]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x38], edi
cmp word [edx], ax
jne 0x478942
xor ecx, ecx
jmp 0x478960
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x58], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478950
sub ecx, dword [ebp - 0x58]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00418420
push 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x17
call fcn.00475900
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x45], al
jb 0x478993
push dword [ebp - 0x2c]
call fcn.004e48b8
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0x15
test eax, eax
je 0x4789de
dec dword [eax + 0x20]
jne 0x4789de
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x4789db
lea eax, [edi + 0xc]
mov ecx, edi
mov edi, dword [eax]
mov dword [eax], 0
mov eax, dword [ecx]
push 1
call dword [eax]
test edi, edi
jne 0x4789c4
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], 0
test ecx, ecx
je 0x478a00
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x478a00
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
cmp byte [ebp - 0x45], 0
je 0x478b43
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
cdq
sub eax, edx
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00408340
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x18
call fcn.0048c710
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx - 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x19
call fcn.004074d0
push dword [ebp - 0x5c]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00402920
add esp, 0xc
push dword [ebp - 0x58]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402920
add esp, 0xc
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1d
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478a99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478ab9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1f
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478ad9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x20
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478af9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x44]
lea ecx, [ebp - 0x30]
push esi
call fcn.004078e0
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 0x31], 1
mov byte [ebp - 4], 0x15
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478b43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x478b43
add esi, 0xfffffff0
mov dword [ebp - 4], 0x11
mov byte [ebp - 4], 0x10
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478b67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00488cd0
test al, al
jne 0x478ba6
push 0x28
call fcn.004e3b54
add esp, 4
mov edi, eax
xor esi, esi
mov edi, edi
call fcn.004e5b54
add eax, dword [0x565ae0]
inc esi
mov dword [edi + esi*4 - 4], eax
cmp esi, 0xa
jl 0x478b80
mov eax, dword [edi + 0x24]
push edi
mov dword [0x565ae0], eax
call fcn.004e5c83
add esp, 4
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jle 0x478bc9
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
jmp 0x478640
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
jmp 0x478640
mov eax, dword [ebp - 0x30]
cmp byte [ebp - 0x32], 0
je 0x478bef
cmp byte [ebp - 0x31], 0
je 0x478d2d
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x22
call fcn.0048da00
mov ecx, dword [0x565ae0]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x16
idiv esi
add esp, 8
cmp edx, 7
jne 0x478c57
mov eax, ecx
sub eax, 0
je 0x478c4d
dec eax
je 0x478c41
inc ecx
mov dword [0x565ae0], ecx
jmp 0x478c57
mov dword [0x565ae0], 0
jmp 0x478c57
mov dword [0x565ae0], 2
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040ebb0
add esp, 8
test al, al
jne 0x478cef
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, 0x523bdc
mov byte [ebp - 4], 0x23
test eax, 0xffff0000
jne 0x478cb0
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x478cbf
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407600
jmp 0x478cbf
push 0x10
push 0x523bdc
lea ecx, [ebp - 0x3c]
call fcn.00409890
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0x24
call fcn.00409200
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x22
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478cef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00488b40
mov ecx, dword [0x566bd8]
mov edx, 0xf84fd55
test al, al
cmove ecx, edx
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov dword [0x566bd8], ecx
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478d2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
lea edx, [eax - 0x10]
mov byte [ebp - 0x31], 1
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x478d4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x50]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x478d6f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x31]
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.004e50b4
mov esp, ebp
pop ebp
ret 4