Function at 0x4e0b20
Capabilities:
Read file on windows
Resolve dns
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x700724
mov dword [ebp - 0x84], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4e0b70
xor eax, eax
jmp 0x4e0b84
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e0b75
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00401710
push 3
push 0x670c2c
lea ecx, [ebp - 0x24]
call fcn.00401710
push 0x30
lea eax, [ebp - 0x78]
push 0
lea edi, [ebx + 0x2c8]
push eax
mov dword [ebp - 0x14], edi
call fcn.006100a0
mov edx, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x104d
push edx
mov dword [ebp - 0x78], connect
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x60], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x2a4]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa0000
push 0
push 0x401
push eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x44]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x3c0]
lea edx, [ebp - 0x44]
push edx
push edi
push esi
push eax
mov ecx, ebx
call fcn.004dfdb0
push 0
push 0
push 0x1004
test al, al
jne 0x4e0d4d
mov eax, edi
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add ebx, 0x9cc
push ebx
lea edx, [ebp - 0x24]
lea esi, [eax + 1]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00428bb0
mov byte [ebp - 4], 4
mov edi, dword [eax]
push 0x30
lea ecx, [ebp - 0x78]
push 0
push ecx
call fcn.006100a0
add esp, 0x18
mov eax, 3
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push 0
push 0x104d
push ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e0cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0d12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0d38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push str..pipemsg_B373C9E7_2733_43CC_ADA2_ED660CE22C75
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.0040bea0
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp - 0x14]
call fcn.0040bdf0
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
call fcn.005ba710
add esp, 4
movzx edi, al
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e0da9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x675f50
test edi, edi
jne 0x4e0db4
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bea0
mov byte [ebp - 4], 0xb
push esi
lea ecx, [ebp - 0x14]
call fcn.0040bdf0
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0dfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4e0e29
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
movzx esi, byte [eax + 2]
movzx eax, byte [eax + 3]
push eax
push esi
push edx
push ecx
lea edx, [ebp - 0x2c]
push 0x66ea44
push edx
call fcn.00405ab0
add esp, 0x18
mov eax, dword [ebp - 0x2c]
push eax
push 0x671930
lea ecx, [ebp - 0x48]
call fcn.004287f0
mov ecx, dword [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 3
push connect
push ecx
call edi
mov dword [ebx + 0x268], eax
cmp eax, 0xffffffff
jne 0x4e0f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push str._sIPC_
push edx
call fcn.00405ab0
mov eax, dword [ebx + 0x3c8]
mov ecx, dword [ebx + 0x3c4]
mov esi, dword [ebp - 0x14]
push eax
push ecx
push esi
call fcn.005be1d0
add esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e0ed0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
push 0x64
call esi
mov ecx, dword [ebp - 0x48]
push 0
push 0
push 3
push 0
push 3
push connect
push ecx
call edi
mov dword [ebx + 0x268], eax
cmp eax, 0xffffffff
jne 0x4e0f10
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x64
jl 0x4e0ee0
cmp dword [ebx + 0x268], 0xffffffff
je 0x4e12b2
xor esi, esi
lea edx, [ebp - 0x104]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x108], edx
mov byte [ebp - 4], 0x11
jmp 0x4e0f40
mov edx, dword [ebx + 0x268]
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x25]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4e0f70
cmp eax, 0xea
jne 0x4e1295
cmp dword [ebp - 0x1c], 1
jb 0x4e1295
mov al, byte [ebp - 0x25]
cmp al, 0xff
jne 0x4e126e
mov edx, dword [ebx + 0x268]
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea ecx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4e0fb5
cmp eax, 0xea
jne 0x4e1295
cmp dword [ebp - 0x1c], 4
jb 0x4e1295
mov eax, dword [ebp - 0x38]
sub eax, esi
add eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x108]
push eax
call fcn.004b97c0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebx + 0x268]
sub eax, esi
add eax, dword [ebp - 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e1295
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x38]
jb 0x4e1295
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x108]
cmp byte [eax], 0xff
jne 0x4e1066
cmp byte [eax + 1], 0xfe
jne 0x4e1066
cmp dword [ebp - 0x38], 2
jbe 0x4e10ce
add eax, 2
push eax
lea eax, [ebp - 0x18]
push 0x66edc0
push eax
call fcn.00405ab0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
sub ecx, 2
add esp, 0xc
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041a310
jmp 0x4e10ce
sub esp, 0x84
mov edi, esp
lea edx, [ebp - 0x18]
push 0x66edc0
mov ecx, 0x21
lea esi, [ebp - 0x108]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00405ab0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
shr esi, 1
sub eax, esi
add esp, 0x8c
or eax, ecx
jge 0x4e10b1
push esi
lea ecx, [ebp - 0x18]
call fcn.00401400
mov eax, dword [ebp - 0x18]
test esi, esi
js 0x4e13c1
cmp esi, dword [eax - 8]
jg 0x4e13c1
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
xor eax, eax
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], eax
push 0x671784
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d920
mov byte [ebp - 4], 0x14
mov esi, dword [ebp - 0x40]
cmp esi, 0xffffffff
je 0x4e11fb
mov edi, dword [ebp - 0x30]
push 0x30
lea ecx, [ebp - 0x78]
push 0
inc edi
push ecx
mov dword [ebp - 0x30], edi
call fcn.006100a0
mov ecx, dword [ebx + 0x2cc]
mov edx, dword [ebp - 0x34]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x104d
push ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x60], 0xff
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x4e11fe
lea edx, [ebp - 0x40]
push edx
push 0x671784
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.0040d920
mov byte [ebp - 4], 0x15
mov ecx, dword [eax]
mov esi, dword [ebp - 0x34]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4e11cf
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4e11c2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4e11c2
push eax
call fcn.004011f0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4e11b4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x84]
jmp 0x4e11cf
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00401670
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e10ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4e10ef
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
add esi, esi
cmp esi, eax
jbe 0x4e1209
mov esi, eax
sub eax, esi
push eax
mov eax, dword [ebp - 0x108]
lea edx, [eax + esi]
push edx
push eax
call fcn.00610e50
add esp, 0xc
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
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 0x4e0f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4e0f40
cmp al, 0xfe
jne 0x4e0f40
mov eax, dword [ebx + 0x268]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x104]
cmp dword [ebp - 0x108], ecx
je 0x4e12b2
lea ecx, [ebp - 0x108]
call fcn.004dc950
mov edx, dword [ebx + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
push 0
push str.agent.msi
push eax
call fcn.004e9190
mov ecx, dword [ebp - 0x44]
add esp, 0xc
push 0
push 9
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call edi
push 0x1f4
mov byte [ebp - 0xd], 0
call edi
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xd]
push edx
push eax
xor esi, esi
call fcn.005be430
add esp, 8
test eax, eax
je 0x4e1334
inc esi
cmp esi, 5
jg 0x4e1334
push 0x3e8
call edi
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xd]
push ecx
push edx
call fcn.005be430
add esp, 8
test eax, eax
jne 0x4e1313
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd]
push eax
push ecx
call fcn.005be430
mov edi, dword [ebp - 0x30]
add esp, 8
inc edi
cmp byte [ebp - 0xd], 0
jne 0x4e13cb
lea edx, [ebx + 0x9cc]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00428bb0
mov byte [ebp - 4], 0x19
mov esi, dword [eax]
push 0x30
lea edx, [ebp - 0x78]
push 0
push edx
call fcn.006100a0
mov ecx, dword [ebx + 0x2cc]
mov eax, 3
add esp, 0x18
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x104d
push ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4e143f
push 0x80070057
call fcn.004011d0
lea ecx, [ebx + 0x8cc]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00428bb0
mov byte [ebp - 4], 0x1b
mov esi, dword [eax]
push 0x30
lea ecx, [ebp - 0x78]
push 0
push ecx
call fcn.006100a0
mov eax, dword [ebx + 0x2cc]
add esp, 0x18
lea edx, [ebp - 0x7c]
push edx
push 0
push 0x104d
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x60], 2
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e144b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x37e8]
push 0
push 0
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4e1548
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0x1e
push 0
push 0x7e3
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4e14a8
push 0x7e3
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405a10
mov edi, dword [ebp - 0x1c]
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebx + 0x37ec]
call fcn.004593e0
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.006115cb
mov esi, eax
add esp, 4
test esi, esi
js 0x4e1508
cmp dword [edi - 4], 1
jle 0x4e14f8
mov edx, dword [edi - 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401370
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push 1
push 0
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov byte [ebp - 4], 0x1e
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e1548
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x44]
push 0
push 0xa
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, byte [ebp - 0xd]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e158c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e15af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e15d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e15f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4