Function at 0x4efd60
Capabilities:
Check http status code

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
test eax, eax
mov dword [esp + 0x14], 0
jge 0x4efda1
neg eax
mov dword [esp + 0x44], eax
cmp dword [eax*4 + 0x1684660], 0xffffffff
jne 0x4efda1
mov dword [esp + 0x14], 1
xor eax, eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x3c]
push edx
push ecx
push eax
push 0
mov ecx, edi
call fcn.005004e0
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + eax*4 + 0x165160]
test ecx, 0x10000400
jne 0x4effb1
cmp word [edi + eax*2 + 0x2029b0], 0
jne 0x4effb1
test ch, 1
je 0x4f0702
test cl, 2
jne 0x4f0702
mov dl, byte [eax + edi + 0x2c6e50]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
and edx, 7
inc edx
test ecx, ecx
je 0x4efe2a
mov ecx, dword [esi*4 + 0xd7ea58]
mov ebx, dword [edx*4 + 0xd7ea58]
cmp ecx, ebx
je 0x4f0702
mov ecx, edx
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*2]
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
mov word [ecx*4 + 0xd60caa], si
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4efe83
mov edx, dword [edx*4 + 0xd7ea58]
mov ebx, dword [esi*4 + 0xd7ea58]
cmp edx, ebx
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*8]
jne 0x4efe77
shl ecx, 4
inc word [ecx + 0x177c688]
lea ecx, [ecx + 0x177c688]
jmp 0x4efe83
shl ecx, 4
mov word [ecx + 0x177c688], 0
mov edx, dword [esp + 0x40]
mov esi, dword [0xd16a98]
lea ecx, [edx + edx*4]
lea ecx, [esi + ecx*2]
xor esi, esi
test edx, edx
mov dword [0xd16a98], ecx
jle 0x4f0702
mov cl, byte [edi + eax + 0x29fa30]
mov bl, byte [edi + eax + 0x2b3440]
cmp cl, bl
jbe 0x4efeeb
dec cl
mov byte [edi + eax + 0x29fa30], cl
mov eax, dword [esp + 0x34]
mov cl, byte [eax + edi + 0x3290a0]
movsx ebx, cl
cmp ebx, 0xc8
jge 0x4efee1
inc cl
mov byte [eax + edi + 0x3290a0], cl
mov eax, dword [esp + 0x34]
inc esi
cmp esi, edx
jl 0x4efea3
jmp 0x4f0702
push eax
mov ecx, 0xf0aef0
call fcn.00403a20
mov eax, dword [esp + 0x34]
mov edx, dword [edi + eax*4 + 0x165160]
and dh, 0xfe
mov dword [edi + eax*4 + 0x165160], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + eax*4 + 0x165160]
and ecx, 0xfffeffff
mov dword [edi + eax*4 + 0x165160], ecx
mov eax, dword [esp + 0x34]
mov ebp, dword [edi + eax*4 + 0x165160]
and ebp, 0xfffffdff
mov dword [edi + eax*4 + 0x165160], ebp
mov eax, dword [esp + 0x34]
mov ebx, dword [edi + eax*4 + 0x165160]
and ebx, 0xffbfffff
mov dword [edi + eax*4 + 0x165160], ebx
mov eax, dword [esp + 0x34]
mov esi, dword [edi + eax*4 + 0x165160]
and esi, 0xfffff7ff
mov dword [edi + eax*4 + 0x165160], esi
mov eax, dword [esp + 0x34]
mov dl, byte [edi + eax + 0x2b3440]
mov byte [edi + eax + 0x29fa30], dl
mov eax, dword [esp + 0x34]
mov byte [eax + edi + 0x3290a0], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov ecx, 0x1cd0f70
call fcn.00491030
mov eax, 1
mov dword [0x1cd0fdc], eax
mov dword [0x150c9ec], eax
jmp 0x4f0702
movsx ebp, word [edi + eax*2 + 0x2029b0]
mov eax, ebp
shl eax, 4
add eax, ebp
lea esi, [eax + eax*2]
shl esi, 2
sub esi, ebp
shl esi, 2
mov ax, word [esi + 0x1a46594]
test ax, ax
je 0x4f0702
cmp ax, 3
je 0x4f0702
mov dx, word [esi + 0x1a465d0]
test dx, dx
je 0x4f0702
movsx eax, word [esi + 0x1a46596]
mov ebx, dword [eax*4 + 0x58d8d4]
test ebx, ebx
je 0x4f0702
test ecx, 0xf000000
jne 0x4f0702
test cl, 2
jne 0x4f0702
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f0049
movsx ecx, word [esi + 0x1a4659a]
mov eax, dword [esp + 0x44]
mov ebx, dword [ecx*4 + 0xd7ea58]
mov eax, dword [eax*4 + 0xd7ea58]
cmp eax, ebx
je 0x4f0702
mov eax, dword [esp + 0x40]
sub edx, eax
mov word [esi + 0x1a465d0], dx
lea ecx, [eax + eax*4]
movsx ebx, word [esi + 0x1a46596]
mov eax, dword [0xd16a98]
lea ecx, [eax + ecx*2]
lea eax, [ebx - 0x2d]
cmp eax, 0x21
mov dword [0xd16a98], ecx
ja case.0x4f007e.46
xor ecx, ecx
mov cl, byte [eax + 0x4f073c]
jmp dword [ecx*4 + 0x4f0734]
movsx ecx, word [esi + 0x1a4659a]
mov eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*4]
mov ax, word [esp + 0x44]
mov word [ecx*4 + 0xd60caa], ax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4f00f7
movsx ecx, word [esi + 0x1a4659a]
mov eax, dword [ecx*4 + 0xd7ea58]
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx*4 + 0xd7ea58]
mov eax, dword [esp + 0x4c]
lea ecx, [eax + eax*8]
lea eax, [eax + ecx*8]
jne 0x4f00eb
shl eax, 4
inc word [eax + 0x177c688]
lea eax, [eax + 0x177c688]
jmp 0x4f00f7
shl eax, 4
mov word [eax + 0x177c688], 0
test dx, dx
jg 0x4f0702
cmp ebx, 0x4f
je 0x4f015b
cmp ebx, 0x55
jle 0x4f010f
cmp ebx, 0x59
jle 0x4f015b
mov edx, dword [esp + 0x44]
movsx eax, word [esi + 0x1a4659a]
mov ecx, dword [edx*4 + 0x1765458]
inc ecx
mov dword [edx*4 + 0x1765458], ecx
mov ecx, dword [eax*4 + 0x1765568]
inc ecx
mov dword [eax*4 + 0x1765568], ecx
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*2]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*4]
mov ecx, edx
shl ecx, 5
lea eax, [ecx + eax*4 + 0xd5fee8]
inc dword [eax]
jmp 0x4f015f
mov edx, dword [esp + 0x44]
add ebx, 0xffffffe4
cmp ebx, 0x32
ja case.0x4f016f.29
xor eax, eax
mov al, byte [ebx + 0x4f0768]
jmp dword [eax*4 + 0x4f0760]
movsx ecx, word [esi + 0x1a4659a]
push edx
push ecx
mov ecx, 0x150fd30
call fcn.004cb790
jmp 0x4f019e
push edx
mov ecx, 0x150fd30
movsx edx, word [esi + 0x1a4659a]
push edx
call fcn.004cb800
movsx eax, word [esi + 0x1a46596]
add eax, 0xffffffe4
cmp eax, 0x32
ja case.0x4f01b9.37
xor ecx, ecx
mov cl, byte [eax + 0x4f07c4]
jmp dword [ecx*4 + 0x4f079c]
push 0x19
push ebp
mov ecx, 0x1a464b0
call fcn.00414eb0
mov word [esi + 0x1a46588], 0
push ebp
movsx edx, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov ecx, 0x1a464b0
mov dword [esp + 0x14], edx
call fcn.0040b060
mov eax, dword [esp + 0x10]
push 0xf
push 3
push 0x73
push esi
push eax
push ebx
mov ecx, edi
call fcn.004f9f40
jmp 0x4f0702
push 0x32
push ebp
mov ecx, 0x1a464b0
call fcn.00414eb0
mov word [esi + 0x1a46588], 0
push ebp
movsx ecx, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov dword [esp + 0x14], ecx
mov ecx, 0x1a464b0
call fcn.0040b060
mov edx, dword [esp + 0x10]
push 0xf
push 4
push 0x74
push esi
push edx
push ebx
mov ecx, edi
call fcn.004f9f40
jmp 0x4f0702
push 0x32
push ebp
mov ecx, 0x1a464b0
call fcn.00414eb0
mov word [esi + 0x1a46588], 0
push ebp
movsx eax, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov ecx, 0x1a464b0
mov dword [esp + 0x14], eax
call fcn.0040b060
mov ecx, dword [esp + 0x10]
push 0xf
push 5
push 0x75
push esi
push ecx
push ebx
mov ecx, edi
call fcn.004f9f40
jmp 0x4f0702
push 0x32
push ebp
mov ecx, 0x1a464b0
call fcn.00414eb0
mov word [esi + 0x1a46588], 0
push ebp
movsx edx, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov ecx, 0x1a464b0
mov dword [esp + 0x14], edx
call fcn.0040b060
mov eax, dword [esp + 0x10]
push 0xf
push 6
push 0x76
push esi
push eax
push ebx
mov ecx, edi
call fcn.004f9f40
jmp 0x4f0702
push 0x32
push ebp
mov ecx, 0x1a464b0
call fcn.00414eb0
mov word [esi + 0x1a46588], 0
push ebp
movsx ecx, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov dword [esp + 0x14], ecx
mov ecx, 0x1a464b0
call fcn.0040b060
mov edx, dword [esp + 0x10]
push 0xf
push 6
push 0x77
push esi
push edx
push ebx
mov ecx, edi
call fcn.004f9f40
jmp 0x4f0702
mov eax, dword [esi + 0x1a46600]
test eax, eax
mov dword [esp + 0x2c], eax
je case.0x4f01b9.37
mov word [esi + 0x1a46588], 0
mov eax, dword [esi + 0x1a465b8]
movsx ecx, word [esi + 0x1a465b2]
movsx ebx, word [esi + 0x1a4659a]
movsx esi, word [esi + 0x1a465b4]
mov dword [esp + 0x10], ecx
push ebp
mov ecx, 0x1a464b0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.0040b060
cmp dword [esp + 0x2c], 4
jg 0x4f03e1
mov eax, dword [esp + 0x18]
xor edx, edx
push 3
lea ecx, [esi*8 + 0x10]
mov dl, byte [eax + 0x12579f0]
push edx
mov edx, dword [esp + 0x18]
push ecx
lea eax, [edx*8 + 0x10]
push eax
push ebx
call fcn.004043e0
add esp, 0x14
jmp 0x4f0439
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor edx, edx
lea ebp, [esi*8 + 0x10]
mov dl, byte [eax + 0x12579f0]
push 5
lea esi, [ecx*8 + 0x10]
push edx
push ebp
push esi
push ebx
call fcn.004043e0
mov edx, dword [esp + 0x2c]
add esp, 0x14
xor ecx, ecx
mov cl, byte [edx + 0x12579f0]
push 0
push 0x1a
push 0
push 0
push 0
push ecx
push ebp
push esi
push 0
push ebx
push 0
mov ecx, 0xf0aef0
call fcn.00401090
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0x7a
push esi
push eax
mov ecx, 0xf017d0
call fcn.00448d00
jmp 0x4f0702
mov ecx, dword [esi + 0x1a465bc]
push 0
movsx edx, word [esi + 0x1a465b4]
movsx eax, word [esi + 0x1a465b2]
push 0x31
push ecx
movsx ecx, word [esi + 0x1a4659a]
push edx
push eax
push ecx
mov ecx, 0x1a464b0
call fcn.0040e3d0
mov ebx, eax
test ebx, ebx
je 0x4f052e
shl eax, 4
add eax, ebx
lea edx, [eax + eax*2]
shl edx, 2
sub edx, ebx
movsx eax, word [edx*4 + 0x1a46596]
mov ecx, dword [eax*4 + 0x58e324]
test ecx, ecx
je 0x4f04b3
mov dword [edi + 0x5549a4], 0
jmp 0x4f04bd
mov dword [edi + 0x5549a4], 1
push ebx
mov ecx, 0x1a464b0
call fcn.0040b120
mov ecx, dword [esi + 0x1a465bc]
push ebx
movsx edx, word [esi + 0x1a465b4]
movsx eax, word [esi + 0x1a465b2]
push 0x31
push ecx
movsx ecx, word [esi + 0x1a4659a]
push edx
push eax
push ecx
mov ecx, 0x1a464b0
call fcn.0040e3d0
test eax, eax
je 0x4f052e
mov ecx, eax
push eax
shl ecx, 4
add ecx, eax
lea edx, [ecx + ecx*2]
shl edx, 2
sub edx, eax
movsx ecx, word [edx*4 + 0x1a46596]
xor edx, edx
mov ebx, dword [ecx*4 + 0x58e324]
mov ecx, 0x1a464b0
test ebx, ebx
sete dl
mov dword [edi + 0x5549a4], edx
call fcn.0040b120
movsx eax, word [esi + 0x1a465b4]
movsx ebx, word [esi + 0x1a465b2]
push 0x32
push ebp
mov ecx, 0x1a464b0
mov dword [esp + 0x24], eax
call fcn.00414eb0
movsx ecx, word [esi + 0x1a46596]
mov eax, dword [ecx*4 + 0x58e324]
test eax, eax
je 0x4f056b
mov dword [edi + 0x5549a4], 0
jmp 0x4f0575
mov dword [edi + 0x5549a4], 1
push ebp
mov ecx, 0x1a464b0
call fcn.0040b120
mov edx, dword [esp + 0x1c]
push 0x96
push edx
push ebx
mov ecx, 0xf017d0
call fcn.00448d00
jmp 0x4f0702
movsx eax, word [esi + 0x1a465d4]
lea ecx, [eax + eax*8]
lea ebx, [eax + ecx*8]
shl ebx, 4
cmp word [ebx + 0x177c500], 9
je 0x4f05cd
mov dx, word [ebx + 0x177c33a]
push eax
mov ecx, 0x177bf80
mov word [ebx + 0x177c33c], dx
call fcn.0056ef60
mov word [ebx + 0x177c500], 0x6e
mov byte [ebx + 0x177c56e], 0x20
mov word [ebx + 0x177c508], 0x20
movsx eax, word [esi + 0x1a4659a]
movsx ebx, word [esi + 0x1a46596]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx*4 + 0x58e324]
test eax, eax
je 0x4f0667
mov dword [edi + 0x5549a4], 0
jmp 0x4f0671
movsx eax, word [esi + 0x1a465d4]
xor ecx, ecx
cmp eax, ecx
je 0x4f0650
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
mov edx, dword [esi + 0x1a465d8]
shl eax, 4
cmp edx, dword [eax + 0x177c2d8]
jne 0x4f0650
mov word [eax + 0x177c500], 0x6e
mov byte [eax + 0x177c56e], cl
mov word [eax + 0x177c508], cx
mov word [eax + 0x177c578], cx
mov word [esi + 0x1a46588], cx
push ebp
mov ecx, 0x1a464b0
call fcn.0040b060
jmp 0x4f0702
mov dword [edi + 0x5549a4], 1
push ebp
mov ecx, 0x1a464b0
call fcn.0040b120
movsx ecx, word [esi + 0x1a465b4]
movsx edx, word [esi + 0x1a465b2]
push 0xaa
push ecx
push edx
mov ecx, 0xf017d0
call fcn.00448d00
mov eax, dword [0x16845d0]
test eax, eax
je 0x4f0702
mov eax, dword [0x176582c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x4f0702
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx*4 + 0xd7ea58]
mov ecx, dword [eax*4 + 0xd7ea58]
cmp edx, ecx
je 0x4f0702
mov eax, dword [0xd17f14]
test eax, eax
je 0x4f0702
cmp ebx, 0x13
je 0x4f06da
cmp ebx, 0xb
jne 0x4f06e9
push str.Genie_23.wav
mov ecx, 0xf017d0
call fcn.0044a540
cmp ebx, 8
je 0x4f06f3
cmp ebx, 9
jne 0x4f0702
push str.Genie_24.wav
mov ecx, 0xf017d0
call fcn.0044a540
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 9
mov dword [esp + 0x20], eax
jl 0x4efda7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push 9
mov ecx, 0x1cd0f70
call fcn.00492040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
add byte [edi], cl
lodsb al, byte [esi]
add byte [edi], cl
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
add byte [eax], al
mov edi, edi
jbe 0x4f0763
dec edi
add byte [ebx + 0x4f01], cl
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
add byte [eax], al
nop
pop edi
add ecx, dword [edi]
push eax
add al, 79
add byte [edx + 0xf004f05], bl
push es
dec edi
add al, al
add dword [edi], ecx
adc eax, dword [edx]
dec edi
add byte [esi + 2], ah
dec edi
add byte [ecx + 0xc004f02], bh
add ecx, dword [edi]
out 5, al
dec edi
add byte [eax], al
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
add dword [ecx], eax
or dword [ecx], ecx
or dword [edx], eax
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
add ecx, dword [ecx]
or dword [ecx], ecx
or dword [eax - 0x6ff7f8fa], eax
nop
nop
nop
nop
nop
nop
nop
nop
xchg esp, eax
or byte [edi], cl