Function at 0x52f500
Capabilities:
Enumerate pe sections
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push esi
push edi
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x52f53d
mov dword [esi], str.TtBuildJacTask
rdtsc
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x74]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], inet_addr
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x50], ecx
shl ecx, 2
mov dword [esp + 0x20], eax
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xa0], ecx
test eax, eax
jle 0x52f59f
xor ecx, ecx
test eax, eax
push 8
cmovs eax, ecx
push eax
lea eax, [esp + 0x80]
push eax
push 0x7d8950
call fcn.00467b80
add esp, 0x10
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], inet_addr
test eax, eax
jle 0x52f5e6
xor ecx, ecx
test eax, eax
push 8
cmovs eax, ecx
push eax
lea eax, [esp + 0x8c]
push eax
push 0x7d8950
call fcn.00467b80
add esp, 0x10
mov esi, dword [esi + 0x1c]
xor edi, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x54], edi
test esi, esi
je 0x52f63d
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
shl ecx, 4
add ecx, 0x7f
mov esi, dword [eax + 0xc]
and ecx, 0xffffff80
mov dword [esp + 0x38], esi
lea edx, [ecx + esi]
cmp ecx, dword [eax + 8]
jg 0x52f62b
cmp edx, dword [eax + 0x10]
ja 0x52f62b
mov esi, dword [esp + 0x74]
mov dword [eax + 0xc], edx
jmp 0x52f641
push ecx
mov ecx, eax
call fcn.0046a3c0
mov esi, dword [esp + 0x74]
mov dword [esp + 0x38], eax
jmp 0x52f641
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x50]
mov edi, 1
or esi, 0x80000000
mov dword [esp + 0x1c], edi
mov dword [esp + 0xa4], esi
lea esi, [edi + 0x3f]
cmp eax, esi
jle 0x52f668
add esi, esi
cmp esi, eax
jl 0x52f662
push dword [0x884adc]
shl esi, 2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
shl esi, 2
push esi
mov dword [esp + 0x74], esi
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push esi
push eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0x74], eax
call fcn.0046b060
xor esi, esi
cmp dword [esp + 0x50], esi
jle 0x52f6d0
mov edi, dword [esp + 0x20]
nop word [eax + eax]
push esi
push dword [edi + esi*4]
lea ecx, [esp + 0xb4]
push 0x7d8954
call fcn.0046ba50
inc esi
cmp esi, dword [esp + 0x50]
jl 0x52f6b0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov esi, dword [esp + 0x4c]
mov edx, 0x80
mov dword [esp + 0x24], ecx
cmp eax, esi
jae 0x52f7fd
nop dword [eax + eax]
mov edi, dword [eax]
cmp edx, dword [edi + 0xa4]
je 0x52f700
mov dword [edi + 0xa4], edx
movzx eax, word [edi + 0xb0]
sub edx, 0xffffff80
mov dword [esp + 0x3c], edx
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [edi + 0xac]
mov edi, dword [edi + 0xac]
mov dword [esp + 0x40], eax
cmp edi, eax
jae 0x52f7e1
nop dword [eax]
movzx eax, byte [edi + 0x1a]
mov esi, 1
sub esi, eax
mov dword [esp + 0x58], edi
push 0xffff
mov word [esp + eax*2 + 0x60], cx
lea ecx, [esp + 0xb0]
push dword [edi + esi*4 + 4]
call fcn.0046b890
mov word [esp + esi*2 + 0x5c], ax
xor eax, eax
cmp byte [edi + 0x1b], al
setne al
and dword [esp + 0x1c], eax
cmp byte [edi + 0x13], 4
jae 0x52f797
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea edx, [eax + ecx*8]
test edx, edx
je 0x52f790
mov eax, dword [esp + 0x58]
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x7c]
inc ecx
mov dword [esp + 0x7c], ecx
jmp 0x52f7c8
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
lea edx, [eax + ecx*8]
test edx, edx
je 0x52f7c0
mov eax, dword [esp + 0x58]
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x88]
inc ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x24]
add edi, 0x30
cmp edi, dword [esp + 0x40]
jb 0x52f730
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
inc ecx
add eax, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
cmp eax, esi
jb 0x52f6f0
mov edi, dword [esp + 0x1c]
push 0x7d8954
lea ecx, [esp + 0xb0]
call fcn.0046b3e0
lea ecx, [esp + 0xac]
call fcn.0046b110
push dword [0x884adc]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
push dword [esp + 0x70]
push dword [esp + 0x70]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [0x884c50]
call esi
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jae 0x52f864
movd xmm0, dword [esp + 0x50]
cvtdq2ps xmm0, xmm0
mov dword [eax], str.MiNumEntities
movss dword [eax + 4], xmm0
add eax, 8
mov dword [ecx + 4], eax
push dword [0x884c50]
call esi
mov esi, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jae 0x52f892
mov dword [eax], str.MiNumConstraints
movd xmm0, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
add eax, 8
mov dword [ecx + 4], eax
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jae 0x52f8c1
mov dword [eax], 0x786a40
movd xmm0, dword [esi + 0x10]
cvtdq2ps xmm0, xmm0
movss dword [eax + 4], xmm0
add eax, 8
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
test edi, edi
mov dword [esp + 0x64], 0xffffffff
sete al
mov dword [esp + 0x68], 0xffffffff
test al, al
mov byte [edx + 0x59], al
setne al
mov byte [edx + 0x58], al
test al, al
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x10], eax
sete byte [esp + 0xf]
mov eax, dword [edx + 0x40]
xor ecx, ecx
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
xor edi, edi
add eax, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
mov word [eax], cx
xor eax, eax
push dword [0x884adc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
add ecx, 0x480
cmp dword [eax + 8], 0x480
jl 0x52f94e
cmp ecx, dword [eax + 0x10]
ja 0x52f94e
mov dword [eax + 0xc], ecx
jmp 0x52f95e
push 0x480
mov ecx, eax
call fcn.0046a3c0
mov dword [esp + 0x48], eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xa0]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
mov dword [esp + 0xa8], 0xffff
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
test eax, eax
je 0x52f9a6
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], ecx
jmp 0x52f9bd
lea eax, [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov ecx, eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x4c]
cmp dword [ecx + 4], 0
je 0x530010
cmp dword [esp + 0x50], 0
jle 0x52f9e9
mov ecx, dword [esp + 0xa0]
mov edi, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, edx
inc dword [esp + 0x64]
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], edx
lea eax, [edx + eax*8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x98], eax
cmp edx, eax
jae 0x52fd9c
nop word [eax + eax]
movzx eax, word [edx + 4]
mov dword [esp + 0x6c], 0
cmp ax, word [esp + 0xa8]
jne 0x52fa3c
lea eax, [esp + 0x6c]
jmp 0x52fa47
mov edi, dword [esp + 0x20]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x90], eax
movzx eax, word [edx + 6]
cmp ax, word [esp + 0xa8]
jne 0x52fa62
lea eax, [esp + 0x6c]
jmp 0x52fa6d
mov edi, dword [esp + 0x20]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x94], eax
cmp edi, 0x90
jne 0x52fcda
mov eax, dword [esp + 0x18]
push dword [0x884adc]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x1000
push dword [eax + 0x28]
call fcn.00460640
mov ecx, eax
mov dword [esp + 0x78], eax
add esp, 8
test ecx, ecx
je 0x52facc
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0
jmp 0x52fad2
xor ecx, ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x52fae8
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], 0
jmp 0x52faf0
mov dword [eax], ecx
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 0x14]
inc dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx + 0x14], 0x90
mov eax, dword [eax + 0x30]
mov dword [ecx + 0xc], esi
lea esi, [ecx + 0x1c]
mov dword [ecx + 8], eax
mov dword [esp + 0x28], 0x90
mov edx, dword [edi]
test byte [edx + 0x12], 0xb
je 0x52fb42
mov eax, dword [esp + 0x54]
mov ecx, eax
inc eax
shl ecx, 4
add ecx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, edx
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea eax, [esi - 4]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi - 4], eax
movzx eax, word [edx + 0x10]
mov word [esi + 0x10], ax
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 4], eax
movzx eax, word [edx + 0x20]
mov word [esi + 0x12], ax
movzx ecx, word [edi + 6]
movzx eax, word [edi + 4]
add edi, 8
inc ax
mov word [esi + 0x14], ax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x10]
mov word [esi + 0x16], ax
mov eax, dword [edx + 4]
add eax, 0xf0
mov dword [esi + 8], eax
mov eax, dword [edx + 8]
add eax, 0xf0
mov dword [esi + 0xc], eax
add esi, 0x1c
movzx eax, word [edx + 0x14]
add ecx, eax
sub dword [esp + 0x28], 1
movzx eax, word [edx + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
lea edx, [edx + eax*4]
mov dword [esp + 0x18], edx
jne 0x52fb18
mov eax, dword [esp + 0x70]
add ecx, 0x10
mov esi, dword [esp + 0x24]
add edx, 0xf
mov dword [esp + 0x28], eax
xor edi, edi
and edx, 0xfffffff0
mov dword [esp + 0x14], edi
mov dword [eax + 0x10], ecx
mov al, byte [esp + 0xf]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
test al, al
je 0x52fcbf
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x30
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, eax
test ecx, ecx
je 0x52fc1c
xor eax, eax
mov dword [ecx], edi
mov byte [ecx + 0x1c], 0
mov word [ecx + 0x1e], ax
mov dword [ecx + 0x20], eax
jmp 0x52fc1e
xor ecx, ecx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x52fc28
mov dword [edx], ecx
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
je 0x52fc82
test eax, eax
jne 0x52fc3f
mov edi, dword [ebp + 0x18]
mov dword [edi], ecx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x68], eax
test edx, edx
je 0x52fc76
mov eax, dword [esp + 0x2c]
movzx eax, word [eax]
test esi, esi
je 0x52fc6b
mov edx, dword [esp + 0x30]
cmp esi, edx
je 0x52fc67
mov word [esi + 0x1e], ax
mov dword [esi + 0x20], edx
mov esi, dword [esi]
test esi, esi
jne 0x52fc56
mov edx, dword [esp + 0x34]
lea eax, [edx + 0x1e]
mov byte [edx + 0x1c], 1
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
inc word [eax]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [eax + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x10]
sub eax, edx
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x3c]
mov dword [ecx + 0x18], eax
mov al, byte [esp + 0xf]
mov edx, dword [esp + 0x40]
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x44]
setne cl
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
jmp 0x52fcde
mov eax, dword [esp + 0x44]
cmp byte [ebp + 0xc], 0
je 0x52fced
cmp eax, 1
jg 0x52fd70
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
test eax, eax
je 0x52fd00
cmp eax, dword [esp + 0x44]
jne 0x52fd13
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
test eax, eax
je 0x52fd26
cmp eax, dword [esp + 0x44]
je 0x52fd26
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [esp + 0x1c], ecx
jmp 0x52fd5a
mov eax, dword [esp + 0x48]
lea ecx, [eax + edi*8]
test ecx, ecx
je 0x52fd3b
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x90]
inc edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
add edx, 8
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0x98]
jb 0x52fa20
jmp 0x52fd9c
cmp edx, dword [esp + 0x98]
jae 0x52fd9c
mov edi, dword [esp + 0x98]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
add edx, 8
mov dword [ecx + 4], eax
add ecx, 8
cmp edx, edi
jb 0x52fd80
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x52ffed
mov eax, dword [esp + 0x18]
push dword [0x884adc]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x1000
push dword [eax + 0x28]
call fcn.00460640
mov ecx, eax
mov dword [esp + 0x48], eax
add esp, 8
test ecx, ecx
je 0x52fdf0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0
jmp 0x52fdf6
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x52fe08
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x52fe14
mov eax, dword [esp + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [edx], ecx
inc dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov dword [ecx + 0x14], edx
mov eax, dword [eax + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
test edx, edx
jle 0x52feed
mov esi, dword [esp + 0x48]
lea edi, [ecx + 0x1c]
mov edx, dword [esi]
test byte [edx + 0x12], 0xb
je 0x52fe6a
mov eax, dword [esp + 0x54]
mov ecx, eax
inc eax
shl ecx, 4
add ecx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, edx
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [edi - 4]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi - 4], eax
movzx eax, word [edx + 0x10]
mov word [edi + 0x10], ax
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
movzx eax, word [edx + 0x20]
mov word [edi + 0x12], ax
movzx ecx, word [esi + 6]
movzx eax, word [esi + 4]
add esi, 8
inc ax
mov word [edi + 0x14], ax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x18]
mov word [edi + 0x16], ax
mov eax, dword [edx + 4]
add eax, 0xf0
mov dword [edi + 8], eax
mov eax, dword [edx + 8]
add eax, 0xf0
mov dword [edi + 0xc], eax
add edi, 0x1c
movzx eax, word [edx + 0x14]
add dword [esp + 0x10], eax
sub dword [esp + 0x14], 1
movzx eax, word [edx + 0x18]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x18], ecx
jne 0x52fe40
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
xor edx, edx
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 0xf
mov dword [esp + 0x14], edx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
cmp byte [esp + 0xf], dl
je 0x52ffeb
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x30
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, eax
test ecx, ecx
je 0x52ff4c
xor eax, eax
mov dword [ecx], 0
mov byte [ecx + 0x1c], 0
mov word [ecx + 0x1e], ax
mov dword [ecx + 0x20], eax
jmp 0x52ff4e
xor ecx, ecx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x52ff58
mov dword [edx], ecx
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
je 0x52ffb2
test eax, eax
jne 0x52ff6f
mov edi, dword [ebp + 0x18]
mov dword [edi], ecx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
test edx, edx
je 0x52ffa6
mov eax, dword [esp + 0x2c]
movzx eax, word [eax]
test esi, esi
je 0x52ff9b
mov edx, dword [esp + 0x30]
cmp esi, edx
je 0x52ff97
mov word [esi + 0x1e], ax
mov dword [esi + 0x20], edx
mov esi, dword [esi]
test esi, esi
jne 0x52ff86
mov edx, dword [esp + 0x34]
lea eax, [edx + 0x1e]
mov byte [edx + 0x1c], 1
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
inc word [eax]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [eax + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
sub eax, edi
mov dword [ecx + 0xc], edi
mov edi, dword [esp + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x18], eax
jmp 0x52ffed
xor edi, edi
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, dword [ecx]
sar eax, 3
mov dword [ecx + 4], eax
test eax, eax
jne 0x52f9c7
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, 2
jl 0x52f992
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xa0]
push dword [esp + 0x24]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [esp + 0xf], 0
je 0x53008d
mov eax, dword [esp + 0x2c]
movzx eax, word [eax]
test esi, esi
je 0x530064
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x530064
mov word [esi + 0x1e], ax
mov dword [esi + 0x20], edi
mov esi, dword [esi]
test esi, esi
jne 0x530053
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
mov byte [eax + 0x1c], 1
movzx ecx, word [edx + 0x54]
lea eax, [ecx + 1]
shl eax, 7
add eax, dword [edx + 0x30]
mov dword [edx + 0x34], eax
lea eax, [ecx]
shr eax, 7
inc eax
mov word [edx + 0x38], ax
mov word [edx + 0x3a], ax
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x54]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
test edi, edi
je 0x5300f4
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x2c]
lea eax, [edi*8]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
test edi, edi
jle 0x5300f4
mov edx, dword [esp + 0x38]
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 0x10]
mov dword [esi + ecx*8], eax
mov eax, dword [edx - 8]
mov dword [esi + ecx*8 + 4], eax
inc ecx
cmp ecx, edi
jl 0x5300e0
push dword [0x884adc]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov edx, dword [esp + 0x48]
cmp dword [eax + 8], 0x480
jl 0x530124
lea ecx, [edx + 0x480]
cmp ecx, dword [eax + 0xc]
jne 0x530124
cmp dword [eax + 0x14], edx
je 0x530124
mov dword [eax + 0xc], edx
jmp 0x530131
push 0x480
push edx
mov ecx, eax
call fcn.0046a590
mov esi, dword [esp + 0x74]
push dword [0x884adc]
shl esi, 4
add esi, 0x7f
and esi, 0xffffff80
call edi
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
mov esi, dword [esp + 0x38]
jg 0x530167
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x530167
cmp dword [eax + 0x14], esi
je 0x530167
mov dword [eax + 0xc], esi
jmp 0x530170
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0xa4]
test eax, eax
js 0x530192
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 4
push eax
mov eax, dword [0x7d8954]
push esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x88], 0
test eax, eax
js 0x5301c5
and eax, 0x3fffffff
mov ecx, 0x7d8950
shl eax, 3
push eax
mov eax, dword [0x7d8950]
push dword [esp + 0x88]
call dword [eax + 0x10]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], inet_addr
mov dword [esp + 0x7c], 0
test eax, eax
js 0x530208
and eax, 0x3fffffff
mov ecx, 0x7d8950
shl eax, 3
push eax
mov eax, dword [0x7d8950]
push dword [esp + 0x7c]
call dword [eax + 0x10]
push dword [0x884c50]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], inet_addr
call edi
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x53024c
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0xa4]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret