Function at 0x4224b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50d65f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.00421e50
xor ebx, ebx
push 0x78
mov dword [esp + 0x30], ebx
mov dword [esi], 0x524b90
mov dword [esi + 0x20], 0x524b7c
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
call fcn.004fd765
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x422532
mov ecx, eax
call fcn.004ab180
jmp 0x422534
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x30], bl
mov dword [esi + 0xe4], eax
call fcn.00403010
push 0xe0
call fcn.004fd765
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x2c], 2
je 0x422569
mov ecx, eax
call fcn.00420110
jmp 0x42256b
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x30], bl
mov dword [esi + 0xe8], eax
call fcn.00403010
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xc7c]
mov edx, dword [ecx + 0x80]
add edx, 2
mov dword [esp + 8], edx
fild dword [esp + 8]
push 0x90
fstp dword [esp + 0xc]
call fcn.004fd765
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
cmp ecx, ebx
mov byte [esp + 0x2c], 3
je 0x42261e
mov eax, dword [0x55cd0c]
mov edx, dword [eax + 0x868]
mov eax, dword [edx + 0x3c]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push 1
sub esp, 0xc
mov eax, esp
fadd dword [0x51f900]
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [eax], edx
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov eax, dword [0x55b9cc]
mov edx, dword [eax + 0xc7c]
push edx
call fcn.0047cc50
jmp 0x422620
xor eax, eax
mov ecx, dword [esi + 0xe8]
push eax
mov byte [esp + 0x30], bl
mov dword [esi + 0xf0], eax
call fcn.00403010
push 0x90
call fcn.004fd765
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
cmp ecx, ebx
mov byte [esp + 0x2c], 4
je 0x4226bb
mov eax, dword [0x55cd0c]
mov edx, dword [eax + 0x868]
mov eax, dword [edx + 0x3c]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push 1
sub esp, 0xc
mov eax, esp
fadd dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [eax], edx
fadd dword [0x51f900]
mov dword [esp + 0x30], 0
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov eax, dword [0x55b9cc]
mov edx, dword [eax + 0xc7c]
push edx
call fcn.0047cc50
jmp 0x4226bd
xor eax, eax
mov ecx, dword [esi + 0xe8]
push eax
mov byte [esp + 0x30], bl
mov dword [esi + 0xf4], eax
call fcn.00403010
push 0x90
call fcn.004fd765
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
cmp ecx, ebx
mov byte [esp + 0x2c], 5
je 0x42275c
mov eax, dword [0x55cd0c]
mov edx, dword [eax + 0x868]
mov eax, dword [edx + 0x3c]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push 1
fld dword [esp + 0xc]
sub esp, 0xc
fadd st(0), st(0)
mov eax, esp
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
faddp st(1)
mov dword [eax], edx
mov dword [esp + 0x30], 0
fadd dword [0x51f900]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov eax, dword [0x55b9cc]
mov edx, dword [eax + 0xc7c]
push edx
call fcn.0047cc50
jmp 0x42275e
xor eax, eax
mov ecx, dword [esi + 0xe8]
push eax
mov byte [esp + 0x30], bl
mov dword [esi + 0xf8], eax
call fcn.00403010
mov eax, dword [esi + 0xf0]
mov byte [eax + 0x78], bl
mov ecx, dword [esi + 0xf4]
mov byte [ecx + 0x78], bl
mov edx, dword [esi + 0xf8]
mov ecx, dword [esp + 0x24]
mov eax, esi
mov byte [edx + 0x78], bl
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret