Function at 0x4013e0
Capabilities:
Encode data using xor
Get system information on windows
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xae4
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x9ec], ecx
push 0x50
push eax
mov dword [ebp - 0xa1c], eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0xa08], 0
mov dword [ebp - 0xa0c], 0
mov dword [ebp - 0xa04], 0
call fcn.00421e90
mov esi, dword [0x46be60]
xor edi, edi
add esp, 0xc
mov dword [ebp - 0xa18], edi
test esi, esi
jne 0x401479
mov edx, str.IsWow64Process2
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
test ecx, ecx
cmovne eax, esi
movzx eax, ax
push eax
xor eax, eax
test ecx, ecx
mov ecx, str.kernel32.dll
cmove edx, eax
call fcn.00413400
mov esi, eax
mov dword [0x46be60], esi
test esi, esi
je 0x4014c7
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
lea eax, [ebp - 0xb8]
push eax
push 0xffffffffffffffff
call dword [0x43f268]
call esi
test eax, eax
je 0x4014c7
movzx eax, word ds:[ebp - 0xb4]
cmp eax, 0x14c
je 0x4014c3
cmp eax, 0x8664
je 0x4014bc
cmp eax, 0xaa64
jne 0x4014c7
mov eax, 0xc
jmp 0x4014db
mov eax, 9
jmp 0x4014db
xor eax, eax
jmp 0x4014db
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x134]
mov dword [ebp - 0xa00], eax
lea eax, [ebp - 0x9f8]
push eax
lea eax, [ebp - 0xa10]
mov dword [ebp - 0x9f8], edi
push eax
push ecx
call fcn.004130e0
test al, al
je 0x401530
mov ebx, dword [ebp - 0x9f8]
test ebx, ebx
jne 0x401543
mov dword [ebp - 0xf4], 0x18
mov eax, dword [ebp - 0x9ec]
lea ecx, [ebp - 0x110]
mov edx, 1
mov dword [eax + 0x28], 3
call fcn.0040d7a0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420226
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xa10]
cmp esi, 0x16
jae 0x40155a
mov dword [ebp - 0xf4], 8
jmp 0x401513
lea ecx, [ebp - 0x110]
call fcn.0040c1c0
test eax, eax
je 0x401513
lea eax, [ebp - 0x110]
mov dword [ebp - 0xf8], 2
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0xc8]
xor edx, edx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0xd8], 0x40d8c0
mov dword [ebp - 0xd0], edi
mov dword [eax + 0x48], ebx
mov eax, dword [ebp - 0xc8]
mov dword [eax + 0x4c], esi
call fcn.0040c780
test eax, eax
jne 0x4015d0
xor edx, edx
lea ecx, [ebp - 0x110]
call fcn.0040d7a0
jmp 0x401513
mov edi, dword [ebp - 0xa00]
xor ebx, ebx
jmp 0x4015e0
cmp ebx, dword [ebp - 0x100]
jae 0x4018a5
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x401602
mov eax, dword ds:[ecx + 0x10]
mov eax, dword [eax + ebx*4]
add eax, dword [ecx]
jmp 0x401604
xor eax, eax
push 0
lea ecx, [ebp - 0x590]
mov edx, ebx
push ecx
push eax
lea ecx, [ebp - 0x110]
call fcn.0040d920
jmp 0x401620
test eax, eax
je 0x40189a
lea edx, [ebp - 0x540]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x401631
sub edx, ecx
lea ecx, [ebp - 0x540]
call fcn.00407060
mov esi, eax
mov dword [ebp - 0xa14], 0x3e
push 0
lea edx, [ebp - 0xa14]
mov dword [ebp - 0xa10], 0x463110
mov ecx, esi
call fcn.00406960
cmp eax, 0xffffffff
jne 0x40189a
push 0
lea edx, [ebp - 0x9f4]
mov dword [ebp - 0x9f4], 0x1e
mov ecx, esi
mov dword [ebp - 0x9f0], str.usernotesdb.xml
call fcn.00406960
cmp eax, 0xffffffff
jne 0x40189a
mov eax, dword [esi + 4]
cmp di, 9
jne 0x40174e
cmp dword [esi], 0xa
mov dword [ebp - 0x9fc], 0xa
mov dword [ebp - 0x9f8], str.i386_
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], 0xa
jb 0x4016f0
push 1
lea edx, [ebp - 0x9fc]
lea ecx, [ebp - 0xbc]
call fcn.004066a0
test al, al
jne 0x40189a
cmp dword ds:[esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa24], 0xc
mov dword [ebp - 0xa20], str.arm64_
mov dword [ebp - 0xa28], eax
mov dword [ebp - 0xa2c], 0xc
jb 0x401876
push 1
lea edx, [ebp - 0xa24]
lea ecx, [ebp - 0xa2c]
call fcn.004066a0
lea esp, [esp]
test al, al
je 0x401876
inc ebx
jmp 0x4015e0
cmp di, 0xc
jne 0x4017f3
cmp dword ds:[esi], 0xa
mov dword [ebp - 0xa34], 0xa
mov dword [ebp - 0xa30], str.i386_
mov dword [ebp - 0xa38], eax
mov dword [ebp - 0xa3c], 0xa
jb 0x40179d
push 1
lea edx, [ebp - 0xa34]
lea ecx, [ebp - 0xa3c]
call fcn.004066a0
test al, al
jne 0x40189a
cmp dword [esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa54], 0xc
mov dword [ebp - 0xa50], str.amd64_
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa4c], 0xc
jb 0x401876
push 1
lea edx, [ebp - 0xa54]
lea ecx, [ebp - 0xa4c]
call fcn.004066a0
test al, al
je 0x401876
inc ebx
jmp 0x4015e0
cmp dword [esi], 0xc
mov dword [ebp - 0xa6c], 0xc
mov dword [ebp - 0xa68], str.amd64_
mov dword [ebp - 0xa60], eax
mov dword [ebp - 0xa64], 0xc
jb 0x401833
push 1
lea edx, [ebp - 0xa6c]
lea ecx, [ebp - 0xa64]
call fcn.004066a0
test al, al
jne 0x40189a
cmp dword [esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa5c], 0xc
mov dword [ebp - 0xa58], str.arm64_
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa44], 0xc
jb 0x401876
push 1
lea edx, [ebp - 0xa5c]
lea ecx, [ebp - 0xa44]
call fcn.004066a0
test al, al
jne 0x40189a
mov eax, dword [ebp - 0xa08]
add eax, dword [ebp - 0x568]
mov dword [ebp - 0xa08], eax
mov eax, dword [ebp - 0xa0c]
adc eax, dword [ebp - 0x564]
mov dword [ebp - 0xa0c], eax
inc ebx
jmp 0x4015e0
mov ebx, dword [ebp - 0x9ec]
push 0
push 0
push 0x467
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
or ebx, 0xffffffff
mov edi, edx
mov dword [ebp - 0xa10], edx
cmp edx, dword [ebp - 0x100]
jae 0x40225f
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x9f8], 0
test ecx, ecx
je 0x4018f3
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
jmp 0x4018f5
xor eax, eax
push 0
lea ecx, [ebp - 0x9e8]
push ecx
push eax
lea ecx, [ebp - 0x110]
call fcn.0040d920
test eax, eax
je 0x4021d9
lea edx, [ebp - 0x998]
lea ecx, [edx + 1]
jmp 0x401920
mov al, byte [edx]
inc edx
test al, al
jne 0x401920
sub edx, ecx
lea ecx, [ebp - 0x998]
call fcn.00407060
mov esi, eax
mov dword [ebp - 0xa44], 0x3e
push 0
lea edx, [ebp - 0xa44]
mov dword [ebp - 0xa40], 0x463110
mov ecx, esi
call fcn.00406960
lea esp, [esp]
cmp eax, 0xffffffff
jne 0x4021d9
push 0
lea edx, [ebp - 0xa5c]
mov dword [ebp - 0xa5c], 0x1e
mov ecx, esi
mov dword [ebp - 0xa58], str.usernotesdb.xml
call fcn.00406960
cmp eax, 0xffffffff
jne 0x4021d9
mov ecx, dword ds:[ebp - 0xa00]
mov eax, dword [esi + 4]
cmp cx, 9
jne 0x401ae6
cmp dword [esi], 0xa
mov dword [ebp - 0xa64], 0xa
mov dword [ebp - 0xa60], str.i386_
mov dword [ebp - 0xa68], eax
mov dword [ebp - 0xa6c], 0xa
jb 0x4019ee
push 1
lea edx, [ebp - 0xa64]
lea ecx, [ebp - 0xa6c]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword [esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa4c], 0xc
mov dword [ebp - 0xa48], str.arm64_
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa54], 0xc
jb 0x401a35
push 1
lea edx, [ebp - 0xa4c]
lea ecx, [ebp - 0xa54]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword ds:[esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa3c], 0xc
mov dword [ebp - 0xa38], str.amd64_
mov dword [ebp - 0xa30], eax
mov dword [ebp - 0xa34], 0xc
jb 0x401d57
push 1
lea edx, [ebp - 0xa3c]
lea ecx, [ebp - 0xa34]
call fcn.004066a0
lea esp, [esp]
test al, al
je 0x401d57
mov ebx, dword [esi]
mov eax, dword [esi + 4]
and ebx, 0xfffffffe
mov edx, dword [0x46bce8]
sub ebx, 0xc
add eax, 0xc
mov dword [ebp - 0x9f0], eax
lea ecx, [ebx + 0xa]
call fcn.00405c60
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [ecx + 4], eax
mov dword [ecx], ebx
mov word [ebx + eax], dx
mov eax, dword [ebp - 0x9f0]
mov dword [ebp - 0xb8], ecx
test eax, eax
je 0x401add
push ebx
push eax
push dword [ecx + 4]
call fcn.00421ff0
mov ecx, dword [ebp - 0xb8]
add esp, 0xc
mov eax, esi
mov esi, ecx
jmp 0x401d3e
cmp cx, 0xc
jne 0x401c0a
cmp dword [esi], 0xa
mov dword [ebp - 0xa2c], 0xa
mov dword [ebp - 0xa28], str.i386_
mov dword [ebp - 0xa20], eax
mov dword [ebp - 0xa24], 0xa
jb 0x401b34
push 1
lea edx, [ebp - 0xa2c]
lea ecx, [ebp - 0xa24]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword ds:[esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xa74], 0xc
mov dword [ebp - 0xa70], str.amd64_
mov dword [ebp - 0xa78], eax
mov dword [ebp - 0xa7c], 0xc
jb 0x401b7d
push 1
lea edx, [ebp - 0xa74]
lea ecx, [ebp - 0xa7c]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword [esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xae0], 0xc
mov dword [ebp - 0xadc], str.arm64_
mov dword [ebp - 0xabc], eax
mov dword [ebp - 0xac0], 0xc
jb 0x401d57
push 1
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac0]
call fcn.004066a0
test al, al
je 0x401d57
mov ebx, dword [esi]
mov eax, dword [esi + 4]
and ebx, 0xfffffffe
mov edx, dword [0x46bce8]
sub ebx, 0xc
add eax, 0xc
mov dword [ebp - 0x9f0], eax
lea ecx, [ebx + 0xa]
call fcn.00405c60
mov ecx, eax
xor edx, edx
lea eax, [ecx + 8]
mov dword [ecx + 4], eax
mov dword [ecx], ebx
mov word [eax + ebx], dx
mov eax, dword [ebp - 0x9f0]
jmp 0x401ac0
cmp dword [esi], 0xc
mov dword [ebp - 0xac8], 0xc
mov dword [ebp - 0xac4], str.amd64_
mov dword [ebp - 0xacc], eax
mov dword [ebp - 0xad0], 0xc
jb 0x401c4e
push 1
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xad0]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword [esi], 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0xad8], 0xc
mov dword [ebp - 0xad4], str.arm64_
mov dword [ebp - 0xa80], eax
mov dword [ebp - 0xa84], 0xc
jb 0x401c95
push 1
lea edx, [ebp - 0xad8]
lea ecx, [ebp - 0xa84]
call fcn.004066a0
test al, al
jne 0x4021d9
cmp dword ds:[esi], 0xa
mov eax, dword [esi + 4]
mov dword [ebp - 0xa8c], 0xa
mov dword [ebp - 0xa88], str.i386_
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa94], 0xa
jb 0x401d57
push 1
lea edx, [ebp - 0xa8c]
lea ecx, [ebp - 0xa94]
call fcn.004066a0
lea esp, [esp]
test al, al
je 0x401d57
mov ecx, dword [esi]
mov eax, dword [esi + 4]
and ecx, 0xfffffffe
mov edx, dword [0x46bce8]
add eax, 0xa
mov dword [ebp - 0xb8], eax
lea eax, [ecx - 0xa]
mov dword [ebp - 0x9f0], eax
call fcn.00405c60
mov ecx, dword [ebp - 0x9f0]
mov ebx, eax
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x401d3a
push ecx
push eax
push dword [ebx + 4]
call fcn.00421ff0
add esp, 0xc
mov eax, esi
mov esi, ebx
mov edi, edi
test eax, eax
je 0x401d57
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401d57
call fcn.00405d40
mov edx, dword [ebp - 0x9e8]
lea eax, [ebp - 0x9f8]
push ecx
push eax
lea ecx, [ebp - 0x110]
call fcn.0040e5c0
mov edx, eax
mov dword [ebp - 0x9f0], edx
test edx, edx
je 0x40220c
mov ebx, dword ds:[ebp - 0x9f8]
or eax, 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x9f8], ebx
mov dword [ebp - 0xb8], ecx
cmp ecx, 4
jb 0x401e1e
mov edi, ebx
shr edi, 2
mov edi, edi
movzx ecx, byte [edx]
sub ebx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x464ed0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x464ed0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x464ed0]
movzx ecx, byte [edx + 3]
add edx, 4
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x464ed0]
sub edi, 1
jne 0x401db0
mov edi, dword [ebp - 0xa18]
mov dword [ebp - 0xb8], ebx
mov ebx, dword [ebp - 0x9f8]
mov ecx, dword [ebp - 0xb8]
mov edi, edi
test ecx, ecx
je 0x401e50
mov ebx, dword [ebp - 0xb8]
lea ebx, [ebx]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x464ed0]
sub ebx, 1
jne 0x401e30
mov ebx, dword [ebp - 0x9f8]
not eax
cmp eax, dword [ebp - 0x9d0]
jne 0x4021fd
push esi
mov esi, dword [ebp - 0x9ec]
lea edx, [ebp - 0xa9c]
mov dword [ebp - 0xa9c], 2
mov dword [ebp - 0xa98], 0x46310c
mov ecx, dword [esi + 0x18]
call fcn.00406d00
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xa18], edi
call fcn.00410de0
test eax, eax
js 0x4021f4
lfence
mov dword [ebp - 0x9f8], 5
mov dword [ebp - 0xaa4], 0x10
mov dword [ebp - 0xaa0], 0x46319c
nop
mov ecx, dword [edi]
mov byte [ebp - 0xb3], 0
cmp ecx, 0x10
jb 0x401f4d
mov eax, dword [edi + 4]
lea edx, [ebp - 0xaa4]
add ecx, 0xfffffff0
mov dword [ebp - 0xaac], 0x10
add eax, ecx
lea ecx, [ebp - 0xaac]
push 0
mov dword [ebp - 0xaa8], eax
call fcn.004066a0
lea ecx, [ecx]
test al, al
je 0x401f4d
mov esi, dword [ebp - 0x9f0]
mov ecx, edi
push ebx
mov edx, esi
call section..text
test al, al
jne 0x401f9f
push ebx
mov edx, esi
mov ecx, edi
call fcn.004052a0
test al, al
jne 0x401f9f
mov ecx, dword [ebp - 0x9ec]
mov edx, edi
push ebx
push esi
call fcn.004011a0
lea ecx, [ecx]
test al, al
jne 0x401f9f
mov byte [ebp - 0xb3], 1
jmp 0x401f64
mov esi, dword [ebp - 0x9f0]
mov ecx, edi
push ebx
mov edx, esi
call fcn.004052a0
lea ecx, [ecx]
test al, al
jne 0x401f9f
lea edx, ds:[ebp - 0xab8]
mov dword [ebp - 0xab8], 0xff676980
mov dword [ebp - 0xab4], 0xffffffff
call fcn.00412f80
sub dword [ebp - 0x9f8], 1
jne 0x401ec0
cmp byte [ebp - 0xb3], 0
jne 0x4021e5
add dword [ebp - 0xa04], ebx
mov ebx, 0x64
mov eax, dword [ebp - 0xa1c]
push dword [ebp - 0xa0c]
adc eax, 0
push dword [ebp - 0xa08]
mov dword [ebp - 0xa1c], eax
mul ebx
lfence
mov ecx, eax
mov eax, dword [ebp - 0xa04]
mul ebx
add ecx, edx
push ecx
push eax
call fcn.0043d040
mov ecx, edi
mov dword [ebp - 0x9f0], eax
mov dword [ebp - 0xb8], edx
call fcn.00411ae0
mov ebx, eax
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xa0], 0x18
mov dword [ebp - 0x9c], str.Extracting:
test ebx, ebx
je 0x40201c
lfence
mov edx, dword [ebx + 4]
jmp 0x402021
mov edx, 0x4630d0
mov ecx, edx
mov dword [ebp - 0x98], 1
lea eax, [ecx + 2]
mov dword [ebp - 0x9f8], eax
mov ax, word ds:[ecx]
add ecx, 2
test ax, ax
jne 0x402036
sub ecx, dword [ebp - 0x9f8]
sar ecx, 1
push 0
push 0x208
mov dword [ebp - 0x84], edx
mov edx, 2
lea eax, [ecx + ecx]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0xb0]
lea eax, [ebp - 0x340]
push eax
call fcn.00409000
test al, al
je 0x40209a
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x9ec]
push 3
push 0x472
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xa04]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x88], eax
mov edx, 7
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xa08]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xa0c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x9f0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb8]
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x340]
push 0x208
push eax
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xa0], 0x14
mov dword [ebp - 0x9c], str.Progress:
mov dword [ebp - 0x98], 0xc
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x70], 8
mov dword [ebp - 0x6c], str._of
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 0x4631f0
mov dword [ebp - 0x38], 9
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0x4631f8
call fcn.00409000
test al, al
je 0x402189
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x9ec]
push 0
push 0x472
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword ds:[ebp - 0x9ec]
push 0
push dword [ebp - 0x9f0]
push 0x46a
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x4021c7
lea ecx, [ebx - 8]
or ebx, 0xffffffff
lfence
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4021ca
lfence
call fcn.00405d40
jmp 0x4021ca
or ebx, 0xffffffff
push esi
push 0
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edx, dword [ebp - 0xa10]
inc edx
jmp 0x4018c3
mov eax, dword [ebp - 0x9ec]
mov dword [eax + 0x28], 0x94
jmp 0x402219
mov dword [esi + 0x28], 0x150
jmp 0x402219
mov eax, dword [ebp - 0x9ec]
mov dword [eax + 0x28], 0x17
jmp 0x402219
mov eax, dword [ebp - 0x9ec]
mov dword [eax + 0x28], 0x3ee
mov edx, 1
lea ecx, [ebp - 0x110]
call fcn.0040d7a0
test edi, edi
je 0x401530
lea ecx, ds:[edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401530
call fcn.00405d40
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420226
mov esp, ebp
pop ebp
ret
mov edx, 1
lea ecx, [ebp - 0x110]
call fcn.0040d7a0
test edi, edi
je 0x402285
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x402285
mov edi, edi
call fcn.00405d40
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420226
mov esp, ebp
pop ebp
ret