Function at 0x4211f0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4622a6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov eax, dword [ecx + 8]
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x28]
lea eax, [esp + 0x30]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], edx
call dword [0x46b8d8]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0xc0], ebx
call fcn.004045b0
add esp, 8
mov eax, dword [esp + 0x30]
mov byte [esp + 0xb8], 2
cmp eax, ebx
je 0x42129d
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x42129d
mov eax, dword [esp + 0x30]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, eax
inc eax
mov dword [esp + 0x20], eax
test ecx, ecx
jne 0x4212bb
mov edx, dword [esp + 0x24]
mov byte [esp + 0x17], 1
cmp edx, dword [esp + 0x28]
jne 0x4212c0
mov byte [esp + 0x17], 0
test bl, 2
je 0x4212e9
mov eax, dword [esp + 0x44]
and ebx, 0xfffffffd
test eax, eax
je 0x4212e9
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4212e9
mov edx, dword [esp + 0x44]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
cmp byte [esp + 0x17], 0
je 0x421472
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
test bl, 4
je 0x421325
mov eax, dword [esp + 0x3c]
and ebx, 0xfffffffb
test eax, eax
je 0x421325
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421325
mov edx, dword [esp + 0x3c]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
mov esi, dword [esp + 0x20]
test bl, 0x10
je 0x421352
mov eax, dword [esp + 0x48]
and ebx, 0xffffffef
test eax, eax
je 0x421352
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x421352
mov edx, dword [esp + 0x48]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
test esi, esi
je 0x421439
mov ecx, dword [esp + 0x40]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push ecx
lea edx, [esp + 0xa0]
push edx
mov ecx, edi
call eax
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x54]
mov edx, dword [eax + 0xc]
add edx, dword [esp + 0x58]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax]
sub ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
sub edx, dword [esp + 0x50]
mov dword [esp + 0x6c], ecx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], edx
call dword [0x46a638]
fild dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
fstp qword [esp + 0x7c]
fild dword [esp + 0x60]
sub eax, dword [esp + 0x60]
inc edx
mov dword [esp + 0x18], edx
fstp qword [esp + 0x84]
inc eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x3c]
fstp qword [esp + 0x90]
fild dword [esp + 0x1c]
fstp qword [esp + 0x98]
call dword [0x46aa08]
dec dword [esp + 0x20]
test bl, 8
je 0x421325
and ebx, 0xfffffff7
cmp dword [esp + 0x34], 0
je 0x421325
mov edx, dword [esp + 0x34]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x421325
mov ecx, dword [esp + 0x34]
push 4
push ecx
jmp 0x42131c
add dword [esp + 0x24], 0x10
test bl, 1
je 0x42129d
and ebx, 0xfffffffe
cmp dword [esp + 0x2c], 0
je 0x42129d
mov edx, dword [esp + 0x2c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x42129d
mov ecx, dword [esp + 0x2c]
push 4
push ecx
jmp 0x421294
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb8], 0xffffffff
test eax, eax
je 0x42149e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x42149e
mov eax, dword [esp + 0x1c]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4