Function at 0x409610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xd4], ecx
shr ecx, 1
cmp ecx, eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], eax
jae 0x40a30c
mov eax, dword [ebp + 0x18]
mov ebx, edi
shl ebx, 4
add ebx, esi
test edi, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], eax
je 0x40a343
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 0xd0], eax
jmp 0x40969f
mov esi, dword [esp + 0xac]
cmp esi, ebx
je 0x40a37a
lea eax, [esi + 0x10]
mov dword [esp + 0xac], eax
mov eax, dword [esi]
mov ecx, eax
neg ecx
jo 0x40a33c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea edi, [esp + 0xb0]
mov esi, dword [esi + 8]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], eax
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xe4], esi
mov esi, dword [esp + 0xb0]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
lea eax, [eax + edx + 8]
lea edx, [esp + 0xdc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call dword [ecx + 0xc]
mov edx, edi
add esp, 0xc
test esi, esi
mov dword [esp + 4], edi
je 0x409750
cmp esi, 1
jne 0x409bd0
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x44]
test al, 1
jne 0x409d95
xor edx, edx
xor edi, edi
jmp 0x409dc3
pxor xmm0, xmm0
mov dword [esp + 0x98], 0x3b9aca00
mov dword [esp + 0x50], 0
movdqa xmmword [esp + 0x40], xmm0
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0xc8]
test eax, ecx
jne 0x409d60
xor esi, esi
jmp 0x4097a2
inc esi
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0xc8]
test eax, ecx
jne 0x409d60
mov edi, dword [edx + 0xcc]
dec eax
xor ebx, ebx
mov dword [esp], esi
and eax, ecx
sub ebx, dword [edx + 0xc4]
lea esi, [eax + eax*2]
mov dword [esp + 0xc], edi
mov edi, dword [edi + esi*4 + 8]
cmp ecx, edi
jne 0x4097e0
inc eax
cmp eax, dword [edx + 0xc0]
jae 0x409830
lea ebx, [ecx + 1]
mov eax, ecx
lock cmpxchg dword [edx + 0x40], ebx
jne 0x409845
jmp 0x409f96
add edi, dword [edx + 0xc4]
lea eax, [ecx + 1]
cmp edi, eax
jne 0x409880
mfence
mov eax, dword [edx]
mov esi, dword [esp]
add eax, dword [edx + 0xc4]
cmp eax, ecx
je 0x4098ba
cmp esi, 6
mov eax, 6
cmovb eax, esi
test esi, esi
je 0x409870
imul eax, eax
nop dword [eax]
pause
dec eax
jne 0x409820
jmp 0x409790
and ebx, ecx
add ebx, dword [edx + 0xc4]
mov eax, ecx
lock cmpxchg dword [edx + 0x40], ebx
je 0x409f96
mov esi, dword [esp]
mov eax, 6
cmp esi, 6
cmovb eax, esi
test esi, esi
je 0x409870
imul eax, eax
nop word [eax + eax]
pause
dec eax
jne 0x409860
jmp 0x409790
mov esi, 1
jmp 0x409791
mov esi, dword [esp]
cmp esi, 7
jae 0x4098aa
mov edx, dword [esp + 4]
test esi, esi
je 0x409790
mov eax, esi
imul eax, esi
nop dword [eax]
pause
dec eax
jne 0x4098a0
jmp 0x409790
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, dword [esp + 4]
inc esi
jmp 0x409791
mov esi, dword [esp + 0x98]
cmp esi, 0x3b9aca00
je 0x409a60
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x40a505
mov dword [esp + 0xc], ebx
mov dword [esp + 0x80], esi
mov dword [esp], edi
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movq xmm0, qword [0x9031f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x409972
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x40a505
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movq xmm0, qword [esp + 0x18]
mov eax, edx
movq qword [0x9031f8], xmm0
or eax, ecx
je 0x40a4f5
mov dword [esp + 0x2c], ecx
push ecx
push edx
push ebx
push esi
mov edi, edx
mov dword [esp + 0xdc], edx
call fcn.004ec950
mov dword [esp + 0x7c], ebx
mov ecx, eax
mov ebx, edx
mul edi
mov dword [esp + 0xc4], eax
mov eax, esi
imul esi, ebx, 0x3b9aca00
imul ebx, edi
mov edi, dword [esp + 0x7c]
add ebx, edx
mov edx, ecx
mov dword [esp + 0xc8], esi
mov esi, eax
mov eax, ecx
mov ecx, 0x3b9aca00
imul edx, dword [esp + 0x2c]
add ebx, edx
sub esi, dword [esp + 0xc4]
sbb edi, ebx
mul ecx
mov ebx, edx
mov dword [esp + 0x7c], eax
mov eax, esi
mov edx, 0x3b9aca00
imul ecx, edi, 0x3b9aca00
add ebx, dword [esp + 0xc8]
mul edx
add edx, ecx
push dword [esp + 0x2c]
push dword [esp + 0xd0]
push edx
push eax
call fcn.004ec950
mov edi, eax
add edi, dword [esp + 0x7c]
adc edx, ebx
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004ec950
mov esi, edx
mov ebx, eax
imul ecx, eax, 0x3b9aca00
xor esi, dword [esp]
xor ebx, dword [esp + 0xc]
sub edi, ecx
xor ecx, ecx
or ebx, esi
mov ebx, dword [esp + 8]
setne cl
cmp eax, dword [esp + 0xc]
mov eax, 0xff
sbb edx, dword [esp]
mov edx, dword [esp + 4]
cmovb ecx, eax
cmp edi, dword [esp + 0x80]
mov eax, 0
sbb eax, eax
test cl, cl
cmovne eax, ecx
cmp al, 2
jb 0x40a2ec
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x3c]
cmp eax, 1
jne 0x409b1b
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0x40]
mov dword [eax + 0x40], 0
test esi, esi
je 0x409b2d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x90]
mov dword [esp + 0x84], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x84]
call fcn.004049b0
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x40], esi
test eax, eax
mov dword [esp + 0x18], eax
je 0x409b14
lock dec dword [eax]
jne 0x409b14
lea ecx, [esp + 0x18]
call fcn.00409090
mov edx, edi
jmp 0x40976d
mov esi, edx
test eax, eax
jne 0x409b75
call fcn.004ee760
mov edx, esi
jmp 0x409a7e
mov esi, edx
call fcn.004f1a00
lea edx, [esp + 0x40]
lea ecx, [esp + 0x90]
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.004049b0
lock dec dword [edi]
jne 0x409b6c
lea ecx, [esp + 0x30]
call fcn.00409090
mov edx, dword [esp + 4]
jmp 0x40976d
call fcn.004f1a00
lea edx, [esp + 0x40]
lea ecx, [esp + 0x90]
mov edi, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x84]
call fcn.004049b0
lock dec dword [edi]
jne 0x409bbb
lea ecx, [esp + 0x84]
call fcn.00409090
mov edx, dword [esp + 4]
jmp 0x40976d
pxor xmm0, xmm0
mov dword [esp + 0x20], 0x3b9aca00
mov dword [esp + 0xa0], 0
xor eax, eax
mov cl, 1
movdqa xmmword [esp + 0x90], xmm0
lock cmpxchg byte [edx], cl
jne 0x409fd7
mov eax, dword [edx + 0x24]
test eax, eax
je 0x409ff0
mov ecx, dword [0x903210]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp byte [ecx + 0x38], 0
jne 0x409c3b
mov ecx, dword [0x903210]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov word [ecx + 0x38], 1
mov ecx, dword [esp + 4]
shl eax, 2
xor edi, edi
lea edx, [eax + eax*2]
mov ecx, dword [ecx + 0x20]
jmp 0x409c5d
add ecx, 0xc
inc edi
add edx, 0xfffffff4
je 0x409ff0
mov eax, dword [0x903210]
mov ebx, dword fs:[0x2c]
mov esi, dword [ecx]
mov eax, dword [ebx + eax*4]
lea eax, [eax + 0x39]
cmp dword [esi + 0x14], eax
je 0x409c50
mov ebx, dword [ecx + 4]
xor eax, eax
lock cmpxchg dword [esi + 0xc], ebx
jne 0x409c50
mov eax, dword [ecx + 8]
test eax, eax
je 0x409c8f
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov cl, 1
xchg byte [eax + 0x1c], cl
cmp cl, 0xff
jne 0x409ca6
add eax, 0x1c
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov ebx, dword [esp + 4]
mov esi, dword [ebx + 0x24]
cmp esi, edi
jbe 0x40a4f5
mov ecx, dword [ebx + 0x20]
lea edx, [edi + edi*2]
not edi
add edi, esi
shl edi, 2
lea eax, [ecx + edx*4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + edx*4]
mov dword [esp], eax
mov eax, dword [ecx + edx*4 + 4]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + edx*4 + 8]
lea ecx, [ecx + edx*4 + 0xc]
lea edx, [edi + edi*2]
mov dword [esp + 0x2c], eax
push edx
push ecx
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0xc]
add esp, 0xc
dec esi
test eax, eax
mov dword [ebx + 0x24], esi
je 0x409ff0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0xa0], eax
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x409d38
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x40a184
movq xmm0, qword [esp + 0x10]
movq qword [eax], xmm0
mov byte [eax + 8], 1
mov ebx, dword [esp + 8]
jmp 0x40a195
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
mov eax, 2
cmp cl, 5
je 0x40a141
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, 1
cmp eax, 2
jne 0x40a146
jmp 0x40a15c
movzx eax, byte [esp + 0x10]
cmp al, 5
jne 0x409f8e
jmp 0x40a15c
mov edx, 1
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
test al, 1
jne 0x409f33
mov ebx, eax
mov dword [esp], edi
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
jne 0x409e30
mov edi, edx
lea esi, [edx + edx + 1]
imul edi, edx
nop dword [eax + eax]
cmp edx, 7
jae 0x409e00
test edx, edx
je 0x409e0a
mov eax, edi
nop dword [eax + eax]
pause
dec eax
jne 0x409df0
jmp 0x409e0a
mov ebx, edx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, ebx
mov eax, dword [esp + 4]
mov ebx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, ebx
test al, 1
jne 0x409f30
mov ebx, eax
add edi, esi
inc edx
add esi, 2
shr ebx, 1
and ebx, 0x1f
cmp ebx, 0x1f
je 0x409de0
mov edi, dword [esp]
mov dword [esp + 0xc], eax
mov eax, ebx
xor eax, 0x1e
or eax, edi
jne 0x409e77
mov dword [esp], ecx
mov esi, edx
xor ecx, ecx
mov edx, 0x178
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x40a4f5
mov edi, eax
push 0x178
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esp]
mov edx, esi
mov eax, dword [esp + 0xc]
test ecx, ecx
jne 0x409ec8
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x178
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x40a4f5
push 0x178
push 0
push eax
mov esi, eax
call sub.VCRUNTIME140.dll_memset
mov ecx, esi
add esp, 0xc
mov edx, dword [esp + 4]
xor eax, eax
lock cmpxchg dword [edx + 0x44], esi
jne 0x409f0b
mov dword [edx + 4], ecx
mov edx, dword [esp]
mov eax, dword [esp + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 4]
lea esi, [eax + 2]
lock cmpxchg dword [ecx + 0x40], esi
je 0x40a233
cmp edx, 6
mov eax, 6
cmovb eax, edx
test edx, edx
je 0x409db0
imul eax, eax
nop word cs:[eax + eax]
nop dword [eax]
pause
dec eax
jne 0x409f00
inc edx
jmp 0x409db5
test edi, edi
je 0x409f22
push edi
push 0
push dword [0x903200]
mov edi, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409f24
mov edi, ecx
mov edx, dword [esp]
mov ecx, dword [esp + 4]
jmp 0x409db5
mov edi, dword [esp]
xor ebx, ebx
xor esi, esi
test edi, edi
je 0x409f4a
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x409f82
mov dword [esp], esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp]
lea edx, [ebx + ebx*2]
mov dword [esi + edx*4 + 8], ecx
mov dword [esi + edx*4 + 4], eax
lock or dword [esi + edx*4 + 0xc], 1
mov ecx, dword [esp + 4]
sub ecx, 0xffffff80
call fcn.00404f60
mov ebx, dword [esp + 8]
jmp 0x40a15c
mov ebx, dword [esp + 8]
cmp al, 5
je 0x40a15c
movzx eax, al
jmp 0x40a153
mov eax, dword [esp + 0xc]
movq xmm0, qword [esp + 0x10]
inc ecx
add edx, 0xa0
lea eax, [eax + esi*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, edx
call fcn.00404f60
mov ebx, dword [esp + 8]
mov eax, 2
cmp eax, 2
jne 0x40a146
jmp 0x40a15c
mov ecx, edx
mov esi, edx
call fcn.004f1520
mov edx, esi
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x409c09
nop dword [eax]
mov edx, dword [esp + 4]
cmp byte [edx + 0x34], 0
je 0x40a02e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
xor eax, eax
xchg byte [edx], al
mov ebx, dword [esp + 8]
cmp al, 2
jne 0x40a13d
push edx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
jmp 0x40a13d
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
mov ebx, edx
shr ebx, 8
mov eax, dword [eax + 0x3c]
cmp eax, 1
jne 0x40a1b1
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0x40]
mov dword [eax + 0x40], 0
test esi, esi
je 0x40a25f
cmp dl, 5
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x40a4f5
mov byte [esp + 0x40], dl
mov edx, dword [esp + 4]
mov word [esp + 0x41], bx
shr ebx, 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 0x18]
mov byte [esp + 0x43], bl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x40]
push esi
call fcn.00404350
add esp, 4
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx + 0x40]
mov dword [ecx + 0x40], esi
test eax, eax
mov dword [esp + 0x40], eax
je 0x40a10f
lock dec dword [eax]
jne 0x40a10f
lea ecx, [esp + 0x40]
call fcn.00409090
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 8]
cmp eax, 3
je 0x40a4f0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x40a15c
test al, 1
je 0x40a4f5
movzx eax, byte [esp + 0x38]
cmp eax, 5
jne 0x40a4f5
cmp dword [esp + 0xdc], 0
je 0x409690
push dword [esp + 0xe0]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x409690
movzx eax, byte [esp + 0x10]
mov ebx, dword [esp + 8]
cmp al, 5
jne 0x40a4f7
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], 2
lock dec dword [eax]
jne 0x40a13d
lea ecx, [esp + 0x40]
call fcn.00409090
jmp 0x40a13d
mov esi, edx
cmp eax, 2
jne 0x40a2d0
call fcn.004f1a00
mov ecx, esi
mov dword [esp + 0x84], eax
cmp cl, 5
je 0x40a4f5
mov edx, dword [esp + 4]
mov byte [esp + 0x40], cl
mov word [esp + 0x41], bx
shr ebx, 0x10
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x43], bl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x40]
push esi
call fcn.00404350
add esp, 4
lock dec dword [esi]
jne 0x40a22a
lea ecx, [esp + 0x84]
call fcn.00409090
mov ebx, dword [esp + 8]
jmp 0x40a13d
cmp ebx, 0x1e
jne 0x40a2dc
mov eax, dword [esp]
test edi, edi
je 0x40a4f5
mov dword [ecx + 0x44], edi
mov ebx, 0x1e
lock add dword [ecx + 0x40], 2
mov dword [eax], edi
mov eax, dword [esp + 0x10]
jmp 0x409f55
mov esi, edx
call fcn.004f1a00
mov ecx, esi
mov dword [esp + 0x30], eax
cmp cl, 5
je 0x40a4f5
mov edx, dword [esp + 4]
mov byte [esp + 0x40], cl
mov word [esp + 0x41], bx
shr ebx, 0x10
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x43], bl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x40]
push esi
call fcn.00404350
add esp, 4
lock dec dword [esi]
jne 0x40a10f
lea ecx, [esp + 0x30]
jmp 0x40a10a
call fcn.004ee760
mov edx, esi
jmp 0x40a059
mov esi, dword [esp]
test edi, edi
jne 0x409f3b
jmp 0x409f4a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
xor eax, eax
cmp eax, 2
jne 0x40a146
jmp 0x40a15c
test dl, dl
je 0x40a330
mov eax, dword [0x903210]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x40a392
add eax, 0x8c
jmp 0x40a39f
test ebx, ebx
je 0x40964a
shr ebx, 1
jmp 0x40a3ae
mov esi, dword [esp + 0xac]
sub ebx, esi
je 0x40a37a
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
shr ebx, 4
add esi, 4
jmp 0x40a366
add esi, 0x10
dec ebx
je 0x40a37a
cmp dword [esi - 4], 0
je 0x40a360
push dword [esi]
push 0
push dword [0x903200]
call edi
jmp 0x40a360
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
call fcn.00405e70
jmp 0x40a4cb
mov dword [esp + 4], ecx
call fcn.0042e2e0
mov ecx, dword [esp + 4]
mov eax, dword [eax]
shr ebx, 1
mov eax, dword [eax + 0x104]
cmp eax, ebx
cmova ebx, eax
sub edi, ecx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x90], ecx
jb 0x40a4f5
mov ebx, dword [ebp + 0x18]
mov dword [esp], edi
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
test eax, eax
je 0x40a3ed
cmp eax, 1
jne 0x40a3ff
lock inc dword [edx + 0xc0]
jg 0x40a409
mov ecx, 7
int 0x29
ud2
lock inc dword [edx + 0x100]
jg 0x40a409
mov ecx, 7
int 0x29
ud2
lock inc dword [edx + 0x38]
jle 0x40a50d
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov edi, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 4], ebx
lea ebx, [esp + 0xd4]
lea edx, [esp + 0x90]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edx
lea edx, [esp + 0xbc]
mov ebx, ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp]
shl ebx, 4
add ebx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ecx
mov eax, dword [0x903210]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x40a4bd
call fcn.0042e2e0
mov ecx, dword [eax]
mov eax, dword [0x903210]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x40a4d3
cmp dword [edx + 0x8c], ecx
jne 0x40a4e1
lea ecx, [esp + 0x40]
push 0
call fcn.00401180
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
add ecx, 0x40
lea edx, [esp + 0x40]
call fcn.004ed650
jmp 0x40a4cb
lea eax, [esp + 0x40]
add ecx, 0x40
push eax
call fcn.004ed8a0
jmp 0x40a4c8
call fcn.004f1a00
ud2
mov edx, dword [esp + 0x14]
movzx ecx, al
call fcn.00406400
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
ud2
mov ecx, 7
int 0x29
ud2