Function at 0x4d3d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7165
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp + 0x24]
mov ecx, 7
mov edi, dword [ebp + 0x20]
mov edx, ecx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmp eax, ebx
je 0x4d3dfc
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x78], ebx
jb 0x4d3dcd
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
mov ebx, dword [ebx + 0x10]
cmp ebx, 7
ja 0x4d3e4e
lea esi, [ebx + ebx]
mov dword [ebp - 0x48], ebx
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00548530
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x58], ax
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x7c], ecx
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x4d3ffd
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x78], edi
jb 0x4d3e17
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
mov ebx, dword [edi + 0x10]
cmp ebx, ecx
ja 0x4d3f03
cmp ecx, 8
mov dword [ebp - 0x30], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
push eax
push edi
call fcn.00548530
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x74], ecx
jmp 0x4d4000
cmp ebx, 0x7ffffffe
ja 0x4d41e2
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4d3e73
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d3e94
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4d4203
add eax, eax
cmp eax, 0x1000
jb 0x4d3ebb
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d4203
push ecx
call fcn.0056728d
add esp, 4
test eax, eax
je 0x4d41e7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d3ed6
test eax, eax
je 0x4d3ed4
push eax
call fcn.0056728d
mov edi, eax
add esp, 4
test edi, edi
je 0x4d41f5
jmp 0x4d3ed6
xor edi, edi
mov dword [ebp - 0x44], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x48], ebx
push edi
call fcn.00547fb0
add esp, 0xc
mov dword [ebp - 0x58], edi
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x84]
lea ecx, [eax + 7]
jmp 0x4d3dfc
cmp ebx, 0x7ffffffe
ja 0x4d4208
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4d3f28
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d3f62
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4d3f43
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d3f62
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4d4203
add eax, eax
cmp eax, 0x1000
jb 0x4d3f89
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d4203
push ecx
call fcn.0056728d
add esp, 4
test eax, eax
je 0x4d420d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d3fa4
test eax, eax
je 0x4d3fa2
push eax
call fcn.0056728d
mov edi, eax
add esp, 4
test edi, edi
je 0x4d421b
jmp 0x4d3fa4
xor edi, edi
mov dword [ebp - 0x2c], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x30], ebx
push edi
call fcn.00547fb0
mov edx, dword [ebp - 0x7c]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4d3ffa
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d3ff0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4229
push edx
push ecx
call fcn.00541c01
add esp, 8
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x28]
cmp eax, edx
je 0x4d4144
cmp dword [edx + 0x14], 8
mov eax, edx
mov dword [ebp - 0x7c], edx
jb 0x4d401e
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ebx, dword [edx + 0x10]
cmp ebx, ecx
ja 0x4d404b
cmp ecx, 8
mov dword [ebp - 0x18], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push eax
push edi
call fcn.00548530
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x4d4144
cmp ebx, 0x7ffffffe
ja 0x4d422e
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4d4070
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d40a9
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4d408b
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d40a9
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4d4203
add eax, eax
cmp eax, 0x1000
jb 0x4d40d0
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d4203
push ecx
call fcn.0056728d
add esp, 4
test eax, eax
je 0x4d4233
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d40eb
test eax, eax
je 0x4d40e9
push eax
call fcn.0056728d
mov edi, eax
add esp, 4
test edi, edi
je 0x4d4241
jmp 0x4d40eb
xor edi, edi
mov dword [ebp - 0x14], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x18], ebx
push edi
call fcn.00547fb0
mov edx, dword [ebp - 0x74]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4d4141
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d424f
push edx
push ecx
call fcn.00541c01
add esp, 8
mov dword [ebp - 0x28], edi
push 0x633208
mov dword [ebp - 0x80], 0x633208
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4d4179
mov ecx, eax
call fcn.004df2b0
add dword [esi + 4], 0x5c
jmp 0x4d4181
push eax
mov ecx, esi
call fcn.004dd280
cmp dword [esi + 0xc], 0
jne 0x4d41b1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4d1520
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.00577219
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x633208
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.004d3c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542357
mov esp, ebp
pop ebp
ret 0x20
call fcn.00407b78
push 0x623ff8
lea eax, [ebp - 0x6d]
push eax
call fcn.00548b7b
push 0x623ff8
lea eax, [ebp - 0x6e]
push eax
call fcn.00548b7b
call fcn.00407ddd
call fcn.00407b78
push 0x623ff8
lea eax, [ebp - 0x6e]
push eax
call fcn.00548b7b
push 0x623ff8
lea eax, [ebp - 0x6d]
push eax
call fcn.00548b7b
call fcn.0055305e
call fcn.00407b78
push 0x623ff8
lea eax, [ebp - 0x6e]
push eax
call fcn.00548b7b
push 0x623ff8
lea eax, [ebp - 0x6d]
push eax
call fcn.00548b7b
call fcn.0055305e
int3