Function at 0x507d44
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x650
mov esi, esp
mov dword [esi + 0x638], ebp
lea eax, [esi + 0x640]
mov dword [esi + 0x5c], ecx
mov dword [esi + 8], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x586240
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
and dword [eax + 8], 0
lea ecx, [esi + 0x88]
mov byte [esi + 0x28], 0
call fcn.00509090
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea edi, [esi + 0xc0]
mov ebx, dword [esi + 0x94]
mov eax, dword [edx + 0x14]
movsd xmm0, qword [ecx + 0x30]
mov dword [esi + 0x60], eax
mov eax, dword [ecx + 0x38]
movsd qword [edi], xmm0
mov dword [edi + 8], eax
mov eax, dword [edx + 0x18]
mov edi, dword [esi + 0x90]
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov byte [esi + 0xf], 1
mov dword [esi + 0x648], 1
mov dword [esi + 0x10], edx
mov edx, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x30], edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x88]
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x188]
push dword [esi + 0x24]
push dword [esi + 8]
push dword [esi + 0x10]
push ebx
push edi
push dword [esi + 0x3c]
push dword [esi + 0x34]
lea edi, [esi + 0xc0]
push edi
push dword [esi + 0x60]
push dword [esi + 0x30]
mov dword [esi + 0x58], eax
push eax
push dword [esi + 0x20]
call fcn.005091ec
add esp, 0x30
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x4c]
movsd xmm0, qword [esi + 0x98]
movsd xmm2, qword [esi + 0x88]
movsd xmm1, qword [esi + 0x90]
lea edx, [esi + 0x70]
mov dword [esi + 0x48], 0
and dword [ecx], 0
mov dword [ecx + 4], 4
and dword [ecx + 8], 0
add eax, 0x10
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm2
mov dword [esi + 0x68], eax
mov al, 1
mov byte [esi + 0x1d], 0
mov dword [esi + 0x648], 4
lea ecx, [esi + 0xc0]
lea edx, [esi + 0x188]
mov byte [esi + 0x1b], al
mov byte [esi + 0x1c], al
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], al
lea eax, [esi + 0x70]
push eax
push 1
call fcn.00509749
pop eax
pop ecx
mov eax, dword [esi + 0xc0]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc4]
mov dword [esi + 8], eax
push 0x50
lea eax, [esi + 0xc8]
push eax
lea ebx, [esi + 0x208]
push ebx
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 0x11c]
mov ebx, dword [esi + 0x118]
mov dword [esi + 0x24], eax
mov al, byte [esi + 0x120]
mov byte [esi + 0x20], al
push 0x63
lea eax, [esi + 0x121]
push eax
lea edi, [esi + 0x270]
push edi
call fcn.0058a110
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, 3
jne 0x50883f
mov eax, dword [esi + 8]
mov dword [esi + 0x430], eax
push 0x50
lea eax, [esi + 0x208]
push eax
lea eax, [esi + 0x434]
push eax
call fcn.0058a110
add esp, 0xc
mov eax, edi
mov edi, dword [esi + 0x24]
mov cl, byte [esi + 0x20]
mov dword [esi + 0x484], ebx
mov dword [esi + 0x488], edi
mov byte [esi + 0x48c], cl
push 0x63
push eax
lea eax, [esi + 0x48d]
push eax
call fcn.0058a110
add esp, 0xc
movzx ebx, word [esi + 0x4ec]
lea eax, [ebx - 0x12c]
cmp ax, 0x63
jae 0x5087a7
mov eax, dword [esi + 0x1e0]
mov ecx, edi
mov edi, dword [eax + 0x88]
test edi, edi
je 0x5087a7
mov edx, dword [esi + 0x48]
inc edx
cmp edx, edi
jae 0x508871
mov edx, dword [esi + 0x48c]
mov al, 1
mov dword [esi + 0x30], ebx
mov byte [esi + 0x18], 0
mov dword [esi + 0x648], 5
mov byte [esi + 0x17], al
mov byte [esi + 0x19], al
mov byte [esi + 0x1a], al
push 8
push 0x6471fc
call fcn.0050b380
pop ecx
pop edi
test eax, eax
je 0x5087a7
and dword [esi + 0xc0], 0
and dword [esi + 0xc8], 0
lea ecx, [esi + 0x188]
mov edi, edx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], edx
mov byte [esi + 0x18], 0
lea edx, [esi + 0xc0]
mov dword [esi + 0x64], ecx
mov dword [esi + 0xd0], ecx
mov cl, 1
mov byte [esi + 0x17], cl
mov byte [esi + 0x19], cl
mov byte [esi + 0x1a], cl
lea ecx, [esi + 0x3cc]
push edi
push eax
call fcn.00517301
pop eax
pop ecx
mov eax, dword [esi + 0x3cc]
cmp eax, 2
jne 0x508171
mov al, byte [esi + 0x3d0]
mov dword [esi + str.Bad_redirection:], 0x647308
lea ecx, [esi + 0xa8]
lea edx, [esi + 0x334]
mov byte [esi + 0x18], 0
mov byte [esi + 8], al
lea eax, [esi + 0xa0]
mov dword [esi + 0xa8], eax
xor eax, eax
mov dword [esi + 0xac], fcn.0041a414
inc eax
mov dword [esi + 0x338], eax
and dword [esi + 0x344], 0
mov dword [esi + 0x33c], ecx
mov dword [esi + 0x340], eax
mov al, 1
lea ecx, [esi + 0x10c]
mov byte [esi + 0x17], al
mov byte [esi + 0x19], al
mov byte [esi + 0x1a], al
call fcn.0050613c
push 2
pop eax
movzx edi, byte [esi + 8]
mov dword [esi + 0xc4], eax
and dword [esi + 0x118], 0
xor ecx, ecx
mov bl, 1
lea edx, [esi + 0xc0]
mov byte [esi + 0x120], cl
mov byte [esi + 0x18], cl
mov dword [esi + 0xc0], eax
mov byte [esi + 0x17], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
lea ecx, [esi + 0x270]
push edi
call fcn.00506f4d
pop eax
mov eax, dword [esi + 0x270]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x274]
mov dword [esi + 8], eax
push 0x44
lea eax, [esi + 0x278]
push eax
lea ebx, [esi + 0x5f4]
push ebx
call fcn.0058a110
add esp, 0xc
lea eax, [esi + 0x2bc]
movsd xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0x2c8]
movsd qword [esi + 0xb0], xmm0
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2cc]
mov dword [esi + 0x24], eax
mov al, byte [esi + 0x2d0]
mov byte [esi + 0x20], al
push 0x63
lea eax, [esi + 0x2d1]
push eax
lea edi, [esi + 0x208]
push edi
call fcn.0058a110
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, 3
je 0x50818c
jmp 0x50894f
mov dword [esi + 8], eax
push 0x44
lea eax, [esi + 0x3d0]
push eax
lea ebx, [esi + 0x5f4]
push ebx
call fcn.0058a110
add esp, 0xc
push 0x44
pop edi
push edi
push ebx
lea ebx, [esi + 0x5b0]
push ebx
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esi + 0x384], eax
push edi
push ebx
lea eax, [esi + 0x388]
push eax
call fcn.0058a110
add esp, 0xc
mov ecx, dword [esi + 0x30]
lea eax, [ecx - 0x12d]
cmp eax, 3
jae 0x50824c
mov ebx, dword [esi + 0x1ec]
mov edx, dword [esi + 0x1f0]
mov ecx, ebx
mov dword [esi + 0x3c], edx
push 3
push str.GETHEADPUTDELETEureq_2.9.6
call fcn.004ae91f
pop ecx
pop edx
test al, al
push 3
pop edi
jne 0x508280
mov edx, dword [esi + 0x3c]
mov ecx, ebx
push 4
push 0x645bef
call fcn.004ae91f
pop ecx
pop edx
test al, al
jne 0x508280
mov al, 1
mov ecx, edi
mov byte [esi + 0x39], 0
mov dword [esi + 0x648], 6
mov byte [esi + 0x38], al
mov byte [esi + 0x3a], al
mov byte [esi + 0x3b], al
call fcn.0046a9f5
mov ebx, edx
mov cl, 1
mov dword [esi + 0x44], eax
mov byte [edx + 2], 0x54
mov word [edx], 0x4547
mov dword [esi + 0x40], 0
push 3
pop eax
mov dword [esi + 0x3c], eax
jmp 0x508290
cmp ecx, 0x133
je 0x508260
cmp ecx, 0x134
jne 0x50891e
mov ebx, dword [esi + 0x1ec]
mov edi, dword [esi + 0x1f0]
mov ecx, ebx
mov edx, edi
call fcn.005050b2
test al, al
je 0x50891e
mov dword [esi + 0x3c], edi
mov edx, dword [esi + 0x1e8]
mov al, 1
xor ecx, ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov eax, dword [esi + 0x1e0]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ecx
cmp byte [eax + 0x8e], 0
je 0x508362
mov eax, dword [esi + 0x64]
mov byte [esi + 4], cl
lea ecx, [esi + 0x384]
mov byte [esi + 5], 0
mov dword [esi + 0x648], 7
mov dword [esi + 8], eax
mov al, 1
mov byte [esi + 6], al
mov byte [esi + 7], al
call fcn.0051b120
mov dword [esi + 0x10], eax
mov dword [esi + 0x48], edx
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x384]
mov byte [esi + 5], 0
mov byte [esi + 4], al
mov al, 1
mov byte [esi + 6], al
mov byte [esi + 7], al
call fcn.0050b390
mov byte [esi + 0x20], al
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 8]
mov byte [esi + 5], 0
mov byte [esi + 4], al
mov al, 1
mov byte [esi + 6], al
mov byte [esi + 7], al
call fcn.0051b120
mov dword [esi + 0x24], eax
mov dword [esi + 0x6c], edx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 8]
mov byte [esi + 5], 0
mov byte [esi + 4], al
mov al, 1
mov byte [esi + 6], al
mov byte [esi + 7], al
call fcn.0050b390
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x24]
mov ebx, eax
mov eax, ecx
or eax, edi
sete al
test ecx, ecx
je 0x508358
test edi, edi
je 0x508358
mov edx, dword [esi + 0x48]
push dword [esi + 0x6c]
push edi
call fcn.004ceab4
pop ecx
pop edx
xor bl, 1
or bl, byte [esi + 0x20]
and bl, al
jmp 0x508364
xor ebx, ebx
mov byte [esi + 0x3cc], bl
lea edi, [esi + 0x208]
mov eax, dword [0x673b84]
cmp eax, 4
jb 0x508427
movzx eax, word [esi + 0x4ec]
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], fcn.0044a1d0
mov dword [esi + str.redirect], 0x647290
mov word [esi + 0x208], ax
lea eax, [esi + 0x64]
mov dword [esi + 0xc8], eax
lea eax, [esi + 0x384]
mov dword [esi + 0xcc], 0x4fb279
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], 0x4fb8ad
push 3
pop ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x274], ecx
and dword [esi + 0x280], 0
mov byte [esi + 5], 0
mov dword [esi + 0x648], 7
mov dword [esi + 0x278], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x27c], ecx
mov cl, 1
mov byte [esi + 6], cl
mov byte [esi + 7], cl
lea ecx, [esi + 0x270]
mov byte [esi + 4], al
push 4
pop edx
push 0xd4
push 0x6472b4
call fcn.00465135
pop eax
pop ecx
movsd xmm0, qword [esi + 0x188]
movsd xmm1, qword [esi + 0x190]
mov eax, dword [esi + 0x198]
mov edi, dword [esi + 0x19c]
movsd qword [esi + 0x270], xmm0
movsd qword [esi + 0x278], xmm1
mov dword [esi + 8], eax
push 0x30
lea eax, [esi + 0x1a0]
push eax
lea eax, [esi + 0xc0]
push eax
call fcn.0058a110
add esp, 0xc
mov ebx, dword [esi + 0x54]
cmp ebx, dword [esi + 0x4c]
jne 0x508493
lea ecx, [esi + 0x4c]
mov edx, ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x648], 0xc
call fcn.0050521b
mov ebx, dword [esi + 0x54]
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
movsd xmm0, qword [esi + 0x270]
movsd xmm1, qword [esi + 0x278]
mov edx, dword [esi + 8]
imul ecx, ebx, 0x48
lea eax, [eax + ecx + 0x18]
movsd qword [eax - 0x10], xmm1
movsd qword [eax - 0x18], xmm0
mov dword [eax - 8], edx
mov dword [eax - 4], edi
push 0x30
lea edi, [esi + 0xc0]
push edi
push eax
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 0x30]
inc ebx
mov ecx, edi
lea edx, [esi + 0x270]
mov dword [esi + 0x270], 0x80000000
mov byte [esi + 6], 1
mov dword [esi + 0x648], 7
mov dword [esi + 0x48], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 4], al
xor eax, eax
mov byte [esi + 5], al
mov byte [esi + 7], al
call fcn.00509090
movsd xmm1, qword [esi + 0xc8]
lea eax, [esi + 0x1f4]
movsd xmm0, qword [esi + 0xc0]
movsd xmm2, qword [esi + 0xd0]
xor ebx, ebx
mov dword [esi + 0x24], 0
mov ecx, dword [eax + 8]
movsd qword [esi + 0x78], xmm1
movsd xmm1, qword [eax]
lea eax, [esi + 0x3cc]
movsd qword [esi + 0x70], xmm0
movsd qword [esi + 0x80], xmm2
mov dword [esi + 0x270], eax
lea eax, [esi + 0x208]
mov dword [esi + 0x210], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0xc0], eax
and dword [esi + 0xc4], 0
and dword [esi + 0xc8], 0
mov dword [esi + 0xcc], ecx
movsd qword [esi + 0x208], xmm1
and dword [esi + 0x210], 0
cmp ebx, dword [esi + 0x20]
lea ecx, [esi + 0x270]
je 0x5085ee
mov edx, ebx
mov dword [esi + 0x648], 9
mov dword [esi + 8], ebx
shl edx, 4
add edx, dword [esi + 0x20c]
mov dword [esi + 0x10], edx
call fcn.005050ec
mov ebx, dword [esi + 8]
inc ebx
test al, al
mov dword [esi + 0xc4], ebx
jne 0x508590
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc8], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.004d351c
xor eax, eax
lea ecx, [esi + 0x270]
inc eax
mov dword [esi + 0x24], eax
jmp 0x508668
mov ebx, dword [esi + 0x20]
jmp 0x508668
mov edx, ebx
mov dword [esi + 0x648], 9
mov dword [esi + 8], ebx
shl edx, 4
add edx, dword [esi + 0x20c]
mov dword [esi + 0x10], edx
call fcn.005050ec
mov ebx, dword [esi + 8]
test al, al
je 0x508641
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x20c]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov ecx, ebx
sub ecx, dword [esi + 0x24]
shl ecx, 4
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
jmp 0x50865b
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
inc eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0x24], eax
mov ecx, dword [edx]
mov edx, dword [edx + 4]
call fcn.004d351c
inc ebx
lea ecx, [esi + 0x270]
mov dword [esi + 0xc4], ebx
cmp ebx, dword [esi + 0x20]
jne 0x5085f3
lea ecx, [esi + 0xc0]
call fcn.004ac8db
mov eax, dword [esi + 0x210]
movsd xmm0, qword [esi + 0x208]
mov edx, dword [esi + 0x1e0]
mov ebx, dword [esi + 0x74]
mov edi, dword [esi + 0x7c]
mov dword [esi + 0x648], 8
lea ecx, [esi + 0xc0]
mov dword [esi + 0x278], eax
mov eax, dword [esi + 0x1d0]
movsd qword [esi + 0x270], xmm0
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1d4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1d8]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x30]
mov byte [esi + 0x2e], al
xor eax, eax
mov byte [esi + 0x2d], al
mov byte [esi + 0x2f], al
mov eax, dword [esi + 0x1e4]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x78]
push dword [esi + 0x20]
push dword [esi + 0x10]
push dword [esi + 8]
push edi
push eax
push ebx
push dword [esi + 0x30]
lea eax, [esi + 0x270]
push eax
lea eax, [esi + 0x384]
push eax
push dword [esi + 0x3c]
push dword [esi + 0x34]
push dword [esi + 0x24]
call fcn.005091ec
add esp, 0x30
lea ecx, [esi + 0x1e0]
mov dword [esi + 0x648], 0xb
call fcn.00506c4e
cmp byte [esi + 0x40], 0
jne 0x508745
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1ec]
call fcn.004d351c
push 0x80
lea eax, [esi + 0xc0]
push eax
lea eax, [esi + 0x188]
push eax
call fcn.0058a110
add esp, 0xc
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
call fcn.004d351c
mov ecx, dword [esi + 0x394]
mov edx, dword [esi + 0x398]
call fcn.004d351c
mov al, 1
lea ecx, [esi + 0x430]
mov dword [esi + 0x648], 4
mov byte [esi + 0x1b], al
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], al
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], al
call fcn.004fb8c1
jmp 0x507e87
lea eax, [esi + 0x4f0]
push 0xc0
lea ecx, [esi + 0x430]
push ecx
push eax
call fcn.0058a110
add esp, 0xc
lea ecx, [esi + 0x550]
mov dword [esi + 0x648], 0xd
call fcn.004fb9b5
mov eax, dword [esi + 0x54]
movsd xmm0, qword [esi + 0x4c]
lea ecx, [esi + 0x550]
lea edi, [esi + 0x4f4]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov eax, dword [edi - 4]
mov dword [esi + 8], eax
push 0x50
push edi
lea eax, [esi + 0x334]
push eax
call fcn.0058a110
add esp, 0xc
mov eax, dword [edi + 0x50]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x24], eax
mov al, byte [edi + 0x58]
mov byte [esi + 0x20], al
lea eax, [esi + 0x54d]
push 0x63
push eax
lea eax, [esi + 0x3cc]
push eax
call fcn.0058a110
add esp, 0xc
push 3
pop eax
mov dword [esi + 0x10], eax
jmp 0x5089f0
mov dword [esi + 0x34], ebx
push 0x50
lea eax, [esi + 0x208]
push eax
lea eax, [esi + 0x334]
push eax
call fcn.0058a110
add esp, 0xc
push 0x63
push edi
lea eax, [esi + 0x3cc]
push eax
call fcn.0058a110
add esp, 0xc
jmp 0x5089cf
lea edx, [esi + 0xc0]
add eax, 0x88
lea ecx, [esi + 0x270]
mov byte [esi + 0x18], 0
mov dword [esi + 0x648], 5
mov dword [edx], str.reached_max_redirects__
mov dword [edx + 4], 2
and dword [edx + 0x10], 0
mov dword [esi + 0x208], eax
lea eax, [esi + 0x208]
mov dword [esi + 0x20c], fcn.004465e0
mov dword [edx + 8], eax
mov al, 1
mov dword [edx + 0xc], 1
mov byte [esi + 0x17], al
mov byte [esi + 0x19], al
mov byte [esi + 0x1a], al
call fcn.0050613c
movsd xmm0, qword [esi + 0x270]
mov eax, dword [esi + 0x278]
movsd qword [esi + 0x104], xmm0
mov dword [esi + 0x10c], eax
push 0x50
lea eax, [esi + 0xc0]
push eax
lea eax, [esi + 0x334]
push eax
call fcn.0058a110
add esp, 0xc
mov dword [esi + 0x34], 0
mov byte [esi + 0x20], 5
push 2
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
jmp 0x5089a8
lea eax, [esi + 0x4f0]
push 0xc0
lea ecx, [esi + 0x430]
push ecx
push eax
call fcn.0058a110
add esp, 0xc
mov ecx, dword [esi + 0x394]
mov edx, dword [esi + 0x398]
call fcn.004d351c
jmp 0x5087c2
push 0x44
pop edi
push edi
push ebx
lea ebx, [esi + 0x5b0]
push ebx
call fcn.0058a110
add esp, 0xc
movsd xmm0, qword [esi + 0xb0]
mov eax, dword [esi + 0xb8]
movsd qword [esi + 0x378], xmm0
mov dword [esi + 0x380], eax
push 0x63
lea eax, [esi + 0x208]
push eax
lea eax, [esi + 0x3cc]
push eax
call fcn.0058a110
add esp, 0xc
push edi
push ebx
lea eax, [esi + 0x334]
push eax
call fcn.0058a110
add esp, 0xc
mov al, 1
lea ecx, [esi + 0x430]
mov byte [esi + 0x1d], 0
mov dword [esi + 0x648], 4
mov byte [esi + 0x1b], al
mov byte [esi + 0x1c], al
mov byte [esi + 0x1e], al
mov byte [esi + 0x1f], al
call fcn.004fb8c1
mov al, 1
lea ecx, [esi + 0x4c]
mov byte [esi + 0x2a], 0
mov dword [esi + 0x648], 3
mov byte [esi + 0x29], al
mov byte [esi + 0x2b], al
mov byte [esi + 0x2c], al
call fcn.004fb9b5
lea ecx, [esi + 0x188]
mov byte [esi + 0xf], 0
mov dword [esi + 0x648], 1
call fcn.0050b3a6
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 8]
cmp edi, 3
jne 0x508a61
mov edi, dword [esi + 0x5c]
mov dword [edi + 4], eax
lea eax, [edi + 8]
push 0x50
lea ecx, [esi + 0x334]
push ecx
push eax
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 0x34]
mov dword [edi + 0x58], eax
mov al, byte [esi + 0x20]
mov dword [edi + 0x5c], ebx
mov byte [edi + 0x60], al
lea eax, [edi + 0x61]
push 0x63
lea ecx, [esi + 0x3cc]
push ecx
push eax
call fcn.0058a110
add esp, 0xc
mov dword [edi], 3
jmp 0x508b8b
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], eax
push 0x50
lea eax, [esi + 0x334]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0058a110
add esp, 0xc
mov eax, dword [esi + 0x34]
mov dword [esi + 0x118], eax
mov al, byte [esi + 0x20]
mov dword [esi + 0x11c], ebx
mov byte [esi + 0x120], al
push 0x63
lea eax, [esi + 0x3cc]
push eax
lea eax, [esi + 0x121]
push eax
call fcn.0058a110
add esp, 0xc
mov edx, dword [esi + 0x60]
lea ecx, [esi + 0x4f0]
mov dword [esi + 0x648], 2
mov dword [esi + 0x10], edi
call fcn.0050b43f
cmp dword [esi + 0x10], 2
lea ebx, [esi + 0xc4]
push 0x60
pop edi
jne 0x508b1f
push edi
push ebx
lea edi, [esi + 0x270]
push edi
call fcn.0058a110
add esp, 0xc
push ebx
call fcn.004fb442
pop eax
push 0x48
lea eax, [esi + 0x4f0]
push eax
push edi
call fcn.0058a110
add esp, 0xc
push 0x60
pop eax
push eax
push edi
lea eax, [esi + 0x430]
push eax
call fcn.0058a110
add esp, 0xc
jmp 0x508b58
push edi
push ebx
lea eax, [esi + 0x430]
push eax
call fcn.0058a110
add esp, 0xc
lea eax, [esi + 0x124]
push edi
push eax
lea edi, [esi + 0x270]
push edi
call fcn.0058a110
add esp, 0xc
mov ecx, dword [esi + 0x500]
mov edx, dword [esi + 0x504]
call fcn.004d351c
mov ebx, dword [esi + 0x5c]
mov eax, dword [esi + 0x10]
mov dword [ebx], eax
lea eax, [ebx + 4]
push 0x60
pop edi
push edi
lea ecx, [esi + 0x430]
push ecx
push eax
call fcn.0058a110
add esp, 0xc
add ebx, 0x64
push edi
lea eax, [esi + 0x270]
push eax
push ebx
call fcn.0058a110
add esp, 0xc
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x648], 0xe
call fcn.00506c4e
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x58]
mov ecx, dword [edi + 0x18]
call fcn.004d351c
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x28]
call fcn.004d351c
mov eax, dword [esi + 0x640]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret