Function at 0x517bd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003273b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x10042170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10036a6c
lea ecx, [ebp - 0x28]
call fcn.0050d108
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
call fcn.0050d398
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x517c46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x14], edi
jne 0x517c7c
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xfffffc00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
mov eax, 0xfffffc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp - 0xdc]
mov dword [edx], edi
call fcn.0051cad8
mov byte [ebp - 4], 4
mov eax, dword [0x1004213c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004213c
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
call dword [0x10035138]
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x2c]
cmp dword [eax - 0xc], edi
je 0x518a93
mov ecx, dword [esi + 0x30]
cmp dword [ecx - 0xc], edi
je 0x518a93
mov edx, dword [esi + 0x40]
cmp dword [edx - 0xc], 0
lea edi, [esi + 0x40]
je 0x518a91
push ebx
call dword [0x10035134]
push 1
mov ecx, esi
mov dword [ebp - 0x44], 0
call fcn.0050dec8
mov dword [ebp - 0x24], eax
test eax, eax
je 0x517da4
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x517da4
lea ecx, [ebp + 0x1c]
call fcn.0050b088
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x24]
push esi
lea ecx, [ebp + 0x1c]
push 0x10036a4c
push ecx
call fcn.0050c408
add esp, 0xc
push 1
lea edx, [ebp + 0x1c]
push edx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.0050ade8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0050ae08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.0051cb58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push ebx
call dword [0x10035138]
mov ebx, 1
add dword [esi + 0xd4], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
call fcn.0050b088
mov byte [ebp - 4], 0xc
mov eax, dword [0x10042128]
push eax
lea ecx, [ebp - 0x3c]
push 0x100354e0
push ecx
call fcn.0050c408
mov edx, dword [ebp - 0x3c]
add esp, 0xc
push 0
push edx
push 0x1003695c
lea ecx, [ebp - 0xdc]
call fcn.0051de28
mov eax, dword [esi + 0x44]
push 0
push eax
push 0x1003590c
lea ecx, [ebp - 0xdc]
call fcn.0051de28
mov eax, dword [esi + 0x2c]
push 0
push eax
push 0x1003591c
lea ecx, [ebp - 0xdc]
call fcn.0051de28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x100435dc
call fcn.0051fa98
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2c]
push 0
push eax
push 0x10036940
lea ecx, [ebp - 0xdc]
call fcn.0051de28
lea ecx, [ebp - 0x20]
call fcn.0050b088
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [0x1004356c]
test eax, eax
jg 0x517e68
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
push 0x100354e0
push ecx
call fcn.0050c408
push 0x10035bb0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0050c708
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x4c]
push ecx
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.0050c648
mov byte [ebp - 4], 0x10
push 0x10035bb0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0050c708
mov byte [ebp - 4], 0x11
push edi
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0050c648
mov byte [ebp - 4], 0x12
push 0x10035bb0
push eax
lea edx, [ebp + 0x14]
push edx
call fcn.0050c708
add esp, 0x48
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x20]
call fcn.0050bde8
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x24]
call fcn.0050ae08
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.0050ae08
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x40]
call fcn.0050ae08
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
mov eax, dword [esi + 0x48]
push eax
lea ecx, [ebp - 0x18]
push 0x100354e0
push ecx
call fcn.0050c408
push 0x10035bb0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0050c708
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x30]
push ecx
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0050c648
mov byte [ebp - 4], 0x15
push 0x10035bb0
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.0050c708
mov byte [ebp - 4], 0x16
push 0x10035998
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050c708
mov byte [ebp - 4], 0x17
push 0x10035bb0
push eax
lea ecx, [ebp + 0x14]
push ecx
call fcn.0050c708
add esp, 0x48
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0050c088
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x24]
call fcn.0050ae08
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.0050ae08
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.0050ae08
lea edx, [ebp - 0x18]
push edx
call fcn.00522c68
push 0x10035bb0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
push ecx
call fcn.0050c708
add esp, 0x10
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0050c088
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov edx, dword [esi + 0xd4]
push edx
lea eax, [ebp - 0x18]
push 0x100354e0
push eax
call fcn.0050c408
push 0x10035bb0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.0050c708
add esp, 0x18
mov byte [ebp - 4], 0x1a
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0050c088
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov eax, dword [esi + 0xd8]
push eax
lea ecx, [ebp - 0x18]
push 0x100354e0
push ecx
call fcn.0050c408
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0050c088
push ecx
mov edi, esp
mov dword [ebp - 0x50], esp
push 1
push ecx
mov edx, esp
mov dword [ebp - 0x64], esp
push 4
push edx
lea ecx, [ebp - 0x2c]
call fcn.0050bc38
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], bl
call fcn.0050c428
add esp, 8
mov byte [ebp - 4], 0x1c
push eax
push ecx
lea eax, [esi + 0x30]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.0050b7b8
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0x1c
call fcn.0050c428
mov byte [ebp - 4], 0x1e
push eax
lea eax, [esi + 0x2c]
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.0050c648
add esp, 0x14
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0050c648
add esp, 0xc
mov byte [ebp - 4], 0x20
mov eax, dword [eax]
push eax
push edi
mov ecx, 0x100435dc
call fcn.0051fd58
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 0x20
call fcn.0050c428
add esp, 8
mov byte [ebp - 4], 0x23
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x24]
call fcn.0050ae08
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x28]
call fcn.0050ae08
lea ecx, [ebp - 0xd]
call fcn.00521a58
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x34]
call fcn.0050b088
mov byte [ebp - 4], 0x28
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0xd]
call fcn.00521058
mov edx, dword [ebp - 0x34]
xor edi, edi
push edi
push edx
push 0x10035b90
lea ecx, [ebp - 0xdc]
call fcn.0051de28
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0050d218
lea ecx, [esi + 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0050b7b8
mov byte [ebp - 4], 0x29
mov edx, dword [ebp - 0x48]
push edx
call dword [0x10035134]
mov dword [ebp - 0x44], edi
lea ecx, [ebp - 0x14]
cmp dword [0x100436d8], edi
jle 0x518461
push 0x3a
call fcn.0050a398
lea ecx, [ebp - 0x14]
cmp eax, 4
jg 0x5181ed
push 0x100357dc
call fcn.0050d1c8
jmp 0x51821b
push 0x3a
call fcn.0050a398
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0050bd18
mov byte [ebp - 4], 0x2a
push eax
lea ecx, [ebp - 0x14]
call fcn.0050bde8
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
lea ecx, [ebp + 0x14]
call fcn.0050b088
mov byte [ebp - 4], 0x2b
mov ecx, dword [0x100436d8]
push ecx
lea edx, [ebp + 0x14]
push 0x100354e0
push edx
call fcn.0050c408
push 0x10035bb4
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0050c708
add esp, 0x18
mov byte [ebp - 4], 0x2c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0050c088
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
push 0x10035688
lea ecx, [ebp - 0x24]
call fcn.0050d108
mov byte [ebp - 4], 0x2d
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050c648
add esp, 0xc
mov byte [ebp - 4], 0x2e
push 1
push eax
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x24]
call fcn.0050ae08
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push edx
push 0x10035b40
push eax
lea ecx, [ebp - 0xdc]
call fcn.0051e598
mov edi, eax
test edi, edi
je 0x5183d2
lea ecx, [ebp + 0x1c]
call fcn.0050b088
mov byte [ebp - 4], 0x2f
push edi
lea ecx, [ebp + 0x1c]
push 0x10036a2c
push ecx
call fcn.0050c408
add esp, 0xc
push 1
lea edx, [ebp + 0x1c]
push edx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x2b
lea ecx, [ebp + 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x34]
call fcn.0050ae08
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0xd]
call fcn.00521a68
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0050ae08
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
call fcn.0050ae08
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.0050ae08
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0050ae08
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.0050ade8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0050ae08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.0051cb58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00527730
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
add esp, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0050d0b8
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [0x10035210]
mov edi, dword [edi]
test edi, edi
js 0x518a39
lea ecx, [ebp + 0x10]
call fcn.0050b088
mov byte [ebp - 4], 0x3c
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xd]
call fcn.00521578
mov edx, dword [ebp + 0x10]
push edx
call fcn.00527730
mov edi, dword [ebp + 0x1c]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x518958
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jge 0x518768
mov dword [ebp + 0xc], 0xffffffff
jmp 0x51878b
cmp byte [esi + 0x64], 0
je 0x5186a7
push 0x3a
call fcn.0050a398
lea ecx, [ebp - 0x14]
cmp eax, 4
jg 0x518486
push 0x100357dc
call fcn.0050d1c8
jmp 0x5184b4
push 0x3a
call fcn.0050a398
inc eax
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
call fcn.0050bd18
mov byte [ebp - 4], 0x30
push eax
lea ecx, [ebp - 0x14]
call fcn.0050bde8
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 0x31
lea ecx, [ebp - 0x60]
push ecx
mov ecx, esi
call fcn.00512558
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], eax
cmp ecx, edi
jle 0x51860e
jmp 0x5184ee
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x40]
cmp eax, ecx
jae 0x518638
mov edx, dword [ebp - 0x60]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0050c648
mov byte [ebp - 4], 0x32
push 0x10035bb4
push eax
lea edx, [ebp + 0x14]
push edx
call fcn.0050c708
add esp, 0x18
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x1c]
call fcn.0050ae08
push 0x1003626c
lea ecx, [ebp - 0x50]
call fcn.0050d108
mov byte [ebp - 4], 0x35
lea ecx, [ebp + 0x14]
push ecx
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.0050c648
add esp, 0xc
mov byte [ebp - 4], 0x36
push 1
push eax
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x64]
call fcn.0050ae08
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x50]
call fcn.0050ae08
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x14]
push eax
push ecx
push 0x10035b40
push edx
lea ecx, [ebp - 0xdc]
call fcn.0051e598
mov edi, eax
test edi, edi
je 0x518642
mov eax, dword [ebp - 0x24]
dec eax
cmp dword [ebp - 0x40], eax
je 0x518650
lea ecx, [ebp - 0x28]
call fcn.0050b088
mov byte [ebp - 4], 0x37
push edi
lea ecx, [ebp - 0x28]
push 0x10036250
push ecx
call fcn.0050c408
add esp, 0xc
push 1
lea edx, [ebp - 0x28]
push edx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x28]
call fcn.0050ae08
mov byte [ebp - 4], 0x31
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x24]
jl 0x5184e8
xor edi, edi
mov byte [ebp - 4], 0x29
mov eax, dword [ebp - 0x60]
cmp eax, edi
je 0x5183de
mov edx, dword [ebp - 0x5c]
push edx
push eax
call fcn.0050c338
mov eax, dword [ebp - 0x60]
push eax
call fcn.00528091
add esp, 0xc
jmp 0x5183de
push 0x80070057
call fcn.00509828
mov byte [ebp - 4], 0x31
lea ecx, [ebp + 0x14]
call fcn.0050ae08
jmp 0x51860c
lea ecx, [ebp + 0x1c]
call fcn.0050b088
mov byte [ebp - 4], 0x38
push edi
lea eax, [ebp + 0x1c]
push 0x10036a2c
push eax
call fcn.0050c408
add esp, 0xc
push 1
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x34
lea ecx, [ebp + 0x1c]
call fcn.0050ae08
mov byte [ebp - 4], 0x31
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x60]
call fcn.0050cb28
jmp 0x518333
push 0x10035bb4
call fcn.0050d1c8
push 0x10035688
lea ecx, [ebp - 0x50]
call fcn.0050d108
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x14]
push edx
call fcn.0050c648
add esp, 0xc
mov byte [ebp - 4], 0x3a
push 1
push eax
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x39
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x50]
call fcn.0050ae08
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp - 0x14]
push eax
push ecx
push 0x10035b40
push edx
lea ecx, [ebp - 0xdc]
call fcn.0051e598
mov edi, eax
test edi, edi
je 0x5183de
lea ecx, [ebp + 0x1c]
call fcn.0050b088
mov byte [ebp - 4], 0x3b
push edi
lea eax, [ebp + 0x1c]
push 0x10036a2c
push eax
call fcn.0050c408
add esp, 0xc
push 1
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x1c]
jmp 0x51832e
push 0x10035bb0
push eax
call fcn.00527a44
add esp, 8
test eax, eax
jne 0x518783
mov dword [ebp + 0xc], 0xffffffff
jmp 0x51878b
sub eax, dword [ebp + 0x10]
sar eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0x10035bb0
lea ecx, [ebp + 0x10]
mov dword [ebp + 8], eax
call fcn.0050aea8
mov ecx, dword [ebp + 8]
mov edi, eax
sub eax, dword [ebp + 0xc]
lea edx, [ebp + 0x18]
dec eax
push eax
push ecx
push edx
lea ecx, [ebp + 0x10]
call fcn.0050bb38
mov byte [ebp - 4], 0x3d
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jle 0x51883a
lea ecx, [ebp - 0x5c]
call fcn.0050b488
mov byte [ebp - 4], 0x3e
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0050bde8
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0050bde8
lea eax, [ebp + 0xc]
push eax
call fcn.0051aec8
add esp, 4
mov byte [ebp - 4], 0x3f
push eax
lea ecx, [ebp - 0x54]
call fcn.0050bde8
mov byte [ebp - 4], 0x3e
lea ecx, [ebp + 0xc]
call fcn.0050ae08
lea ecx, [ebp - 0x48]
call fcn.0050a2e8
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea ecx, [esi + 0x78]
call fcn.00512088
lea ecx, [ebp - 0x48]
call fcn.0050ade8
mov byte [ebp - 4], 0x3d
lea ecx, [ebp - 0x5c]
call fcn.0050b3c8
lea esi, [edi + 1]
push esi
push 0x10035bb0
lea ecx, [ebp + 0x10]
call fcn.0050aea8
sub eax, edi
dec eax
push eax
push esi
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x10]
call fcn.0050bb38
mov byte [ebp - 4], 0x40
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0050bde8
mov byte [ebp - 4], 0x3d
lea ecx, [ebp + 0x1c]
call fcn.0050ae08
push 0x7c
lea ecx, [ebp + 0x10]
call fcn.0050a398
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x10]
call fcn.0050bc38
mov byte [ebp - 4], 0x3d
lea ecx, [ebp + 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x3c
lea ecx, [ebp + 0x18]
call fcn.0050ae08
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x10]
call fcn.0050ae08
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x34]
call fcn.0050ae08
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0xd]
call fcn.00521a68
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0050ae08
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
call fcn.0050ae08
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.0050ae08
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0050ae08
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.0050ade8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0050ae08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.0051cb58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x100369e8
lea ecx, [ebp + 0x1c]
call fcn.0050d108
mov byte [ebp - 4], 0x42
push 1
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 0x3c
lea ecx, [ebp + 0x1c]
call fcn.0050ae08
mov dword [edi], 0xfffffc01
mov byte [ebp - 4], 0x29
lea ecx, [ebp + 0x10]
call fcn.0050ae08
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x34]
call fcn.0050ae08
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0xd]
call fcn.00521a68
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0050ae08
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
call fcn.0050ae08
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.0050ae08
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0050ae08
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.0050ade8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0050ae08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.0051cb58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
mov eax, 0xfffffc01
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x14]
call fcn.0050ae08
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x34]
call fcn.0050ae08
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0xd]
call fcn.00521a68
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.0050ae08
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
call fcn.0050ae08
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.0050ae08
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0050ae08
jmp 0x518392
xor edi, edi
push 0x100369a0
lea ecx, [ebp + 0x1c]
call fcn.0050d108
mov byte [ebp - 4], 8
push 1
lea edx, [ebp + 0x1c]
push edx
mov ecx, 0x100436dc
call fcn.0051f638
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518ad7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
push ebx
call dword [0x10035134]
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x518b08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.0051cb58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0050d478
mov eax, 0xfffffc0f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c