Function at 0x418df0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x455d20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46ec3c]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46ec3c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
xor ebx, ebx
push 0x38
lea eax, [esp + 0x2c]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x30], ebx
call fcn.0043ab50
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 0x45b0e8
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], ebx
call fcn.00403e30
mov edx, dword [esi]
mov edx, dword [edx + 0x58]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x78], 1
call edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0xd
jne 0x4190b6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push eax
lea edx, [esp + 0x44]
push 0x20
push edx
call fcn.0043b937
add esp, 0xc
cmp dword [esp + 0x18], 1
jg 0x418ed4
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 2
mov dword [esp + 0x24], eax
jg 0x418efe
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 3
mov dword [esp + 0x28], eax
jg 0x418f28
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 4
mov dword [esp + 0x2c], eax
jg 0x418f52
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 5
mov dword [esp + 0x30], eax
jg 0x418f7c
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 6
mov dword [esp + 0x34], eax
jg 0x418fa6
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x18]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 7
mov byte [esp + 0x38], al
jg 0x418fd0
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 8
mov byte [esp + 0x39], al
jg 0x418ffa
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 9
mov byte [esp + 0x3a], al
jg 0x419024
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 0xa
mov byte [esp + 0x3b], al
jg 0x41904e
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 0xb
mov byte [esp + 0x3c], al
jg 0x419078
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x18], 0xc
mov byte [esp + 0x3e], al
jg 0x4190a2
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x30]
push eax
call fcn.0043b07d
add esp, 4
mov byte [esp + 0x3f], al
mov ecx, 0xf
mov edi, ebp
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004117b0
mov eax, ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00438d51
add esp, 0x5c
ret 8